-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b03
if (peerMap.get(target) == peer) {
peerMap.remove(target);
notifyPeerMapUpdated();
}
Instead of separate get+remove calls we can use Map.remove(Key,Value) instead.
peerMap is an IdentityHashMap, so semantic is the same.
peerMap.remove(target);
notifyPeerMapUpdated();
}
Instead of separate get+remove calls we can use Map.remove(Key,Value) instead.
peerMap is an IdentityHashMap, so semantic is the same.
- links to
-
Commit(master) openjdk/jdk/5a62e995
-
Review(master) openjdk/jdk/24858