diff --git a/java/java-psi-impl/src/messages/JavaErrorBundle.properties b/java/java-psi-impl/src/messages/JavaErrorBundle.properties index 7f533050c91c..67a34e550b6d 100644 --- a/java/java-psi-impl/src/messages/JavaErrorBundle.properties +++ b/java/java-psi-impl/src/messages/JavaErrorBundle.properties @@ -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 diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/SimpleAvailability.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/SimpleAvailability.java index bce97622dc34..66396312c272 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/SimpleAvailability.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advLVTI/SimpleAvailability.java @@ -59,7 +59,7 @@ class Main { for (var v: ) {} - for (var v: null) {} + for (var v: null) {} for (var v: (v)) {} } @@ -74,7 +74,7 @@ class Main { Hello iterableExistingHello, World iterableUnresolvedWorld) { for (String arg: iterableStrings) { } - for (String arg: iterableExistingHello) { } + for (String arg: iterableExistingHello) { } 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 : valueOfAandB) { + for(Object foo : valueOfAandB) { System.out.println(foo); } }); java.util.Optional.of((A & World)x).ifPresent(valueOfAandUnresolvedWorld -> { - for(Object foo : valueOfAandUnresolvedWorld) { + for(Object foo : valueOfAandUnresolvedWorld) { System.out.println(foo); } }); diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/ForeachTypes.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/ForeachTypes.java index 3d8ba534879b..60afd6a1f459 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/ForeachTypes.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/ForeachTypes.java @@ -30,7 +30,7 @@ class a { for (int p: list) {} } - for (int gjkh : 222) { + for (int gjkh : 222) { } } } \ No newline at end of file