Skip to content

Commit

Permalink
Simplify ParameterizedType#equals
Browse files Browse the repository at this point in the history
  • Loading branch information
pettyjamesm committed May 16, 2024
1 parent 1342252 commit c760595
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/io/airlift/bytecode/ParameterizedType.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,7 @@ public boolean equals(Object o)
}

ParameterizedType that = (ParameterizedType) o;

if (!type.equals(that.type)) {
return false;
}

return true;
return type.equals(that.type);
}

@Override
Expand Down

0 comments on commit c760595

Please sign in to comment.