Commit 47798ec7 authored by Guus der Kinderen's avatar Guus der Kinderen

Lock should be a properly interned string

By using a concatination of an interned string with another string, the resulting string will not be interned itself - making for non-functional lock.
parent 37a1c4fe
...@@ -437,7 +437,7 @@ public class User implements Cacheable, Externalizable, Result { ...@@ -437,7 +437,7 @@ public class User implements Cacheable, Externalizable, Result {
String keyString = key; String keyString = key;
try { try {
synchronized (getName() + keyString.intern()) { synchronized ((getName() + keyString).intern()) {
if (properties.containsKey(keyString)) { if (properties.containsKey(keyString)) {
String originalValue = properties.get(keyString); String originalValue = properties.get(keyString);
answer = properties.put(keyString, value); answer = properties.put(keyString, value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment