Java: improve javac quirks inspection texts (IJPF-CR-15669)

GitOrigin-RevId: fa038ac62b8f9e0a4fd56a483578741a353e0886
This commit is contained in:
Bas Leijdekkers
2023-11-29 12:09:01 +01:00
committed by intellij-monorepo-bot
parent 64eda78071
commit a50138d2c8
4 changed files with 11 additions and 11 deletions

View File

@@ -251,12 +251,12 @@ inspection.common.if.parts.family=Extract common parts of 'if' statement
inspection.common.if.parts.settings.highlight.when.tail.call=Highlight when the last common statement is a call
inspection.common.if.parts.settings.highlight.else.if=Highlight else-if chains that can be simplified
inspection.compiler.javac.quirks.anno.array.comma.fix=Remove trailing comma
inspection.compiler.javac.quirks.anno.array.comma.problem=Trailing comma in annotation array initializer may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)
inspection.compiler.javac.quirks.anno.array.comma.problem=Trailing comma in annotation array initializers can cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)
inspection.compiler.javac.quirks.name=Javac quirks
inspection.compiler.javac.quirks.qualifier.type.args.fix=Remove generic parameter
inspection.compiler.javac.quirks.qualifier.type.args.problem=Generics in qualifier reference may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)
inspection.compiler.javac.quirks.illegal.forward.reference=Forward reference may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)
inspection.quirk.method.reference.return.type.message=Target method return type mentions inaccessible class {0}. This will cause IllegalAccessError at runtime.
inspection.compiler.javac.quirks.qualifier.type.args.problem=Generics in qualifier references may cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)
inspection.compiler.javac.quirks.illegal.forward.reference=Forward references may cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)
inspection.quirk.method.reference.return.type.message=Target method return type mentions inaccessible class {0}, this will cause an IllegalAccessError at runtime
# | is replaced with 'left' or 'right'
inspection.constant.on.wrong.side.of.a.comparison.side.option=Constant should be on the|side of a comparison
inspection.contract.display.name=Contract issues

View File

@@ -20,7 +20,7 @@ class C {
int[] value();
}
@TestAnnotation({0, 1<warning descr="Trailing comma in annotation array initializer may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)">,</warning>})
@TestAnnotation({0, 1<warning descr="Trailing comma in annotation array initializers can cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)">,</warning>})
void m() { }
class A<T> {
@@ -31,7 +31,7 @@ class C {
void m(Object o) {
if (o instanceof A<?>.B<?>) {
final A<?>.B<?> b = (A<warning descr="Generics in qualifier reference may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)"><?></warning>.B<?>)o;
final A<?>.B<?> b = (A<warning descr="Generics in qualifier references may cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)"><?></warning>.B<?>)o;
b.m(null, null);
}
}

View File

@@ -1,3 +1,3 @@
class A<T extends <warning descr="Forward reference may cause compilation error in some Javac versions (e.g. JDK 5 and JDK 6)">S</warning>, S> {
class A<T extends <warning descr="Forward references may cause compilation errors when using older javac versions (for example JDK 5 and JDK 6)">S</warning>, S> {
T t;
}

View File

@@ -10,10 +10,10 @@ class Baz {
}
public static void main(String[] args) {
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private. This will cause IllegalAccessError at runtime.">Foo::m0</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private. This will cause IllegalAccessError at runtime.">Foo::m1</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private. This will cause IllegalAccessError at runtime.">Foo::m2</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Package. This will cause IllegalAccessError at runtime.">Foo::m3</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private, this will cause an IllegalAccessError at runtime">Foo::m0</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private, this will cause an IllegalAccessError at runtime">Foo::m1</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Private, this will cause an IllegalAccessError at runtime">Foo::m2</warning>);
Baz.foo(<warning descr="Target method return type mentions inaccessible class foo.Foo.Package, this will cause an IllegalAccessError at runtime">Foo::m3</warning>);
Baz.foo(Foo::m4);
Baz.foo(Foo::m5);
}