Skip to content

Commit 4c239dd

Browse files
committed
Use TypeBinding.equalsEquals() instead
1 parent 3d38e39 commit 4c239dd

File tree

1 file changed

+1
-2
lines changed
  • org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast

1 file changed

+1
-2
lines changed

org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/internal/compiler/ast/MessageSend.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171

7272
import java.util.HashMap;
7373
import java.util.Map;
74-
import java.util.Objects;
7574
import java.util.function.BiConsumer;
7675
import org.eclipse.jdt.core.compiler.CharOperation;
7776
import org.eclipse.jdt.internal.compiler.ASTVisitor;
@@ -1005,7 +1004,7 @@ public TypeBinding resolveType(BlockScope scope) {
10051004
}
10061005
TypeBinding declared = this.binding.declaringClass.erasure();
10071006
TypeBinding actual = this.actualReceiverType.erasure();
1008-
boolean isExplicitUse = Objects.equals( declared, actual);
1007+
boolean isExplicitUse = TypeBinding.equalsEquals( declared, actual);
10091008
if (isMethodUseDeprecated(this.binding, scope, isExplicitUse, this))
10101009
scope.problemReporter().deprecatedMethod(this.binding, this);
10111010

0 commit comments

Comments
 (0)