diff --git a/plugins/IntelliLang/java-support/inspectionDescriptions/InjectionNotApplicable.html b/plugins/IntelliLang/java-support/inspectionDescriptions/InjectionNotApplicable.html index 0985b681748a..f7f4244209c4 100644 --- a/plugins/IntelliLang/java-support/inspectionDescriptions/InjectionNotApplicable.html +++ b/plugins/IntelliLang/java-support/inspectionDescriptions/InjectionNotApplicable.html @@ -1,5 +1,13 @@
Reports when a@Language annotation is applied to an element with a type other than String or String[].
+Example:
+
+ @Language("HTML") int i;
+
+After the quick-fix is applied:
+
+ int i;
+
diff --git a/plugins/IntelliLang/java-support/inspectionDescriptions/PatternNotApplicable.html b/plugins/IntelliLang/java-support/inspectionDescriptions/PatternNotApplicable.html
index 1fb360565613..3b6cb35e8c5c 100644
--- a/plugins/IntelliLang/java-support/inspectionDescriptions/PatternNotApplicable.html
+++ b/plugins/IntelliLang/java-support/inspectionDescriptions/PatternNotApplicable.html
@@ -1,5 +1,9 @@
Reports when a @Pattern annotation is applied to an element with a type other than String.
+Example:
+
+ @Pattern("\\d\\d") int i;
+
diff --git a/plugins/IntelliLang/java-support/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html b/plugins/IntelliLang/java-support/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html
index f0c51d3599fd..149d22eeff1c 100644
--- a/plugins/IntelliLang/java-support/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html
+++ b/plugins/IntelliLang/java-support/inspectionDescriptions/PatternOverriddenByNonAnnotatedMethod.html
@@ -5,5 +5,16 @@ This does not prevent error-highlighting inside the editor, however the overridi
A quick fix is provided to add a @Pattern annotation that matches the one from the superclass method. This ensures the
runtime-check instrumentation works correctly.
+
Example:
+
+ abstract class Parent {
+ abstract @Pattern("\\d\\d-\\d\\d\\d") String getId();
+ }
+ class Child extends Parent {
+ @Override String getId() { // warning here
+ return "12-345";
+ }
+ }
+