diff --git a/java/java-impl/src/com/intellij/codeInspection/WrapperTypeMayBePrimitiveInspection.java b/java/java-impl/src/com/intellij/codeInspection/WrapperTypeMayBePrimitiveInspection.java index ad2d63a61538..5ff36a38c162 100644 --- a/java/java-impl/src/com/intellij/codeInspection/WrapperTypeMayBePrimitiveInspection.java +++ b/java/java-impl/src/com/intellij/codeInspection/WrapperTypeMayBePrimitiveInspection.java @@ -42,10 +42,10 @@ public class WrapperTypeMayBePrimitiveInspection extends AbstractBaseJavaLocalIn static CallMatcher getValueOfMatcher() { CallMatcher[] matchers = JvmPrimitiveTypeKind.getBoxedFqns() .stream() - .filter(fqn -> !fqn.equals(CommonClassNames.JAVA_LANG_CHARACTER)) - .map(fqn -> CallMatcher.staticCall(fqn, "valueOf") - .parameterTypes(CommonClassNames.JAVA_LANG_STRING)) - .toArray(size -> new CallMatcher[size]); + .filter(fqn -> !fqn.equals(CommonClassNames.JAVA_LANG_CHARACTER)) + .map(fqn -> CallMatcher.staticCall(fqn, "valueOf") + .parameterTypes(CommonClassNames.JAVA_LANG_STRING)) + .toArray(size -> new CallMatcher[size]); return CallMatcher.anyOf(matchers); }