-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
None
synchronized (this) {
oldValue = desktopProperties.get(name);
desktopProperties.put(name, newValue);
}
To obtain previous value of HashMap we can use result of desktopProperties.put call. In this case we can avoid redundant HashMap.get call.
oldValue = desktopProperties.get(name);
desktopProperties.put(name, newValue);
}
To obtain previous value of HashMap we can use result of desktopProperties.put call. In this case we can avoid redundant HashMap.get call.
- links to
-
Review(master) openjdk/jdk/24691