Files
openide/plugins/IntelliLang/java-support/inspectionDescriptions/PatternValidation.html
Bas Leijdekkers 0ad669c793 inspection description cleanup
GitOrigin-RevId: fbf95ca2a668a3f1836aac15dd5e6fef1259c9c0
2022-12-13 00:13:32 +00:00

17 lines
537 B
HTML

<html>
<body>
Reports expressions passed as arguments for <code>@Pattern</code> parameters and
returned from <code>@Pattern</code>-annotated methods that do not match the specified pattern.
<p><b>Example:</b></p>
<pre><code>
@Pattern("\\d\\d-\\d\\d\\d") String getId() {
<b>return</b> "1";
}
</code></pre>
<p>
Use the <b>Flag non compile-time constant expressions</b> option to let the inspection report expressions with
an unknown value and offer to add a substitution (<code>@Subst</code>) annotation.
</p>
</body>
</html>