Java language level updates concerning Maps. (#1008)

* Java language level updates concerning Maps.

* Reverts when comments indicated no sync can happen.
This commit is contained in:
Koen De Groote authored and Rob Bygrave committed 2017-04-22 15:48:46 +12:00
1 parent 8432f7b0d5
commit 43408fcb87
15 files changed
+20 -91

No files matched your search

@@ -103,11 +103,7 @@ public class ProfileManager implements ProfilingListener {
private ProfileOrigin getProfileOrigin(ObjectGraphOrigin originQueryPoint) {
synchronized (monitor) {
ProfileOrigin stats = profileMap.get(originQueryPoint.getKey());
if (stats == null) {
stats = new ProfileOrigin(originQueryPoint, queryTuningAddVersion, profilingBase, profilingRate);
profileMap.put(originQueryPoint.getKey(), stats);
}
ProfileOrigin stats = profileMap.computeIfAbsent(originQueryPoint.getKey(), k -> new ProfileOrigin(originQueryPoint, queryTuningAddVersion, profilingBase, profilingRate));
return stats;
}
}