diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java index c29a55c203c..c7f2af9568a 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java @@ -7387,7 +7387,7 @@ public void notCompatibleTypesError(ASTNode location, TypeBinding leftType, Type leftShortName = leftName; rightShortName = rightName; } - int problemId = IProblem.IncompatibleTypesInEqualityOperator; // name is misleading, also used for instanceof patterns + int problemId = IProblem.IncompatibleTypesInEqualityOperator; if (location instanceof Pattern p && p.getEnclosingPattern() instanceof RecordPattern) { problemId = IProblem.PatternTypeMismatch; } else if (location instanceof InstanceOfExpression) {