Skip to content

Commit

Permalink
Avoid containsKey(..) call on KeySet removeAll
Browse files Browse the repository at this point in the history
  • Loading branch information
cfelde committed Feb 21, 2016
1 parent 7b8e491 commit d9f2a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/cfelde/bohmap/BOHMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ public boolean removeAll(Collection<?> c) {
if (!(k instanceof Binary))
continue;

changed = map.containsKey((Binary)k) || changed;
changed = changed || map.containsKey((Binary)k);
map.remove((Binary)k);
}

Expand Down

0 comments on commit d9f2a68

Please sign in to comment.