-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b23
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
-
Commit(master) openjdk/jdk/e557b695
-
Review(master) openjdk/jdk/24691