Skip to content

Commit

Permalink
remove imprecise comment, defer to issue eclipse-jdt#3119
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Oct 19, 2024
1 parent 720b5d7 commit 7e73c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7e73c2b

Please sign in to comment.