-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b24
SelectiveAWTEventListener selectiveListener =
listener2SelectiveListener.get(localL);
if (selectiveListener != null) {
listener2SelectiveListener.remove(localL);
There is no need to call WeakHashMap.get + WeakHashMap.remove.
Instead we can call only remove and compare result with null.
listener2SelectiveListener.get(localL);
if (selectiveListener != null) {
listener2SelectiveListener.remove(localL);
There is no need to call WeakHashMap.get + WeakHashMap.remove.
Instead we can call only remove and compare result with null.
- links to
-
Commit(master) openjdk/jdk/a0cdf36b
-
Review(master) openjdk/jdk/24692