Skip to content

Commit

Permalink
[Java] Tidy up after merge of PR #121.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Dec 18, 2017
1 parent 34d25cc commit 0a57966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions agrona/src/main/java/org/agrona/collections/IntHashSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -667,11 +667,7 @@ public boolean equals(final Object other)
{
return containsAll(c);
}
catch (final ClassCastException unused)
{
return false;
}
catch (final @DoNotSub NullPointerException unused)
catch (final @DoNotSub ClassCastException | NullPointerException ignore)
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,7 @@ public boolean equals(final Object other)
{
return containsAll(c);
}
catch (final ClassCastException unused)
{
return false;
}
catch (final NullPointerException unused)
catch (final ClassCastException | NullPointerException ignore)
{
return false;
}
Expand Down

0 comments on commit 0a57966

Please sign in to comment.