Skip to content

Commit 994dfff

Browse files
committed
Remove unnecessary null check, instanceof handles it
1 parent 4f28635 commit 994dfff

File tree

1 file changed

+1
-1
lines changed
  • javaparser-core/src/main/java/com/github/javaparser/ast

1 file changed

+1
-1
lines changed

javaparser-core/src/main/java/com/github/javaparser/ast/Node.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public final int hashCode() {
339339

340340
@Override
341341
public boolean equals(final Object obj) {
342-
if (obj == null || !(obj instanceof Node)) {
342+
if (!(obj instanceof Node)) {
343343
return false;
344344
}
345345
return EqualsVisitor.equals(this, (Node) obj);

0 commit comments

Comments
 (0)