-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b23
In the following code:
if (storedInsets.get(win.getClass()) == null) {
storedInsets.put(win.getClass(), correctWM);
}
We can use Map.putIfAbsent to avoid unnecessary Map.get call
if (storedInsets.get(win.getClass()) == null) {
storedInsets.put(win.getClass(), correctWM);
}
We can use Map.putIfAbsent to avoid unnecessary Map.get call
- links to
-
Commit(master) openjdk/jdk/522c7b44
-
Review(master) openjdk/jdk/24906