mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update language injection and pattern validation inspection descriptions
GitOrigin-RevId: bdc93923120d204b059fb91e68bf872c99a49344
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a711466be7
commit
a99d1835ba
@@ -1,5 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports when a <code>@Language</code> annotation is applied to an element with a type other than <code>String</code> or <code>String[]</code>.
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
@Language("HTML") <b>int</b> i;
|
||||
</code></pre>
|
||||
<p>After the quick-fix is applied:</p>
|
||||
<pre><code>
|
||||
<b>int</b> i;
|
||||
</code></pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports when a <code>@Pattern</code> annotation is applied to an element with a type other than <code>String</code>.
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
@Pattern("\\d\\d") <b>int</b> i;
|
||||
</code></pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+11
@@ -5,5 +5,16 @@ This does not prevent error-highlighting inside the editor, however the overridi
|
||||
<p>
|
||||
A quick fix is provided to add a <code>@Pattern</code> annotation that matches the one from the superclass method. This ensures the
|
||||
runtime-check instrumentation works correctly.
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
abstract class Parent {
|
||||
abstract @Pattern("\\d\\d-\\d\\d\\d") String getId();
|
||||
}
|
||||
class Child extends Parent {
|
||||
@Override String getId() { // warning here
|
||||
return "12-345";
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
Validates expressions passed as arguments for <code>@Pattern</code> parameters and
|
||||
values returned from <code>@Pattern</code>-annotated methods.
|
||||
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>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports when the ID of the language used in an <code>@Language</code> annotation is unknown.
|
||||
Reports when the ID of the language used in a <code>@Language</code> annotation is unknown.
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
@Language("HMTL") String html;
|
||||
</code></pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user