[java] fix casing in error message

GitOrigin-RevId: b62a4d41e0c663195ef055de7960155a20443cb5
This commit is contained in:
Bas Leijdekkers
2022-12-05 13:46:31 +00:00
committed by intellij-monorepo-bot
parent 9677b47bb4
commit 11d3e39fc0
3 changed files with 6 additions and 6 deletions
@@ -66,7 +66,7 @@ generics.unchecked.call.to.member.of.raw.type=Unchecked call to ''{0}'' as a mem
generics.unchecked.call=Unchecked method ''{0}'' invocation
generics.diamond.not.applicable=Diamond operator is not applicable for non-parameterized types
generics.reference.parameters.not.allowed=Reference parameters are not allowed here
foreach.not.applicable=foreach not applicable to type ''{0}''
foreach.not.applicable=Foreach not applicable to type ''{0}''
illegal.to.access.static.member.from.enum.constructor.or.instance.initializer=It is illegal to access static member ''{0}'' from enum constructor or instance initializer
enum.types.cannot.be.instantiated=Enum types cannot be instantiated
generic.array.creation=Generic array creation
@@ -59,7 +59,7 @@ class Main {
for (var v:<error descr="Expression expected"> </error>) {}
for (var v: <error descr="foreach not applicable to type 'null'">null</error>) {}
for (var v: <error descr="Foreach not applicable to type 'null'">null</error>) {}
for (var v: (<error descr="Cannot resolve symbol 'v'">v</error>)) {}
}
@@ -74,7 +74,7 @@ class Main {
Hello iterableExistingHello,
<error descr="Cannot resolve symbol 'World'">World</error> iterableUnresolvedWorld) {
for (String arg: iterableStrings) { }
for (String arg: <error descr="foreach not applicable to type 'Main.Hello'">iterableExistingHello</error>) { }
for (String arg: <error descr="Foreach not applicable to type 'Main.Hello'">iterableExistingHello</error>) { }
for (String arg: iterableUnresolvedWorld) {}
}
@@ -82,12 +82,12 @@ class Main {
interface B {}
void test(Object x) {
java.util.Optional.of((A & B)x).ifPresent(valueOfAandB -> {
for(Object foo : <error descr="foreach not applicable to type 'Main.A & Main.B'">valueOfAandB</error>) {
for(Object foo : <error descr="Foreach not applicable to type 'Main.A & Main.B'">valueOfAandB</error>) {
System.out.println(foo);
}
});
java.util.Optional.of((A & <error descr="Cannot resolve symbol 'World'">World</error>)x).ifPresent(valueOfAandUnresolvedWorld -> {
for(Object foo : <error descr="foreach not applicable to type 'Main.A & World'">valueOfAandUnresolvedWorld</error>) {
for(Object foo : <error descr="Foreach not applicable to type 'Main.A & World'">valueOfAandUnresolvedWorld</error>) {
System.out.println(foo);
}
});
@@ -30,7 +30,7 @@ class a {
for (<error descr="Incompatible types. Found: 'int', required: 'java.lang.Object'">int p</error>: list) {}
}
for (int gjkh : <error descr="foreach not applicable to type 'int'">222</error>) {
for (int gjkh : <error descr="Foreach not applicable to type 'int'">222</error>) {
}
}
}