aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2019-03-26 00:24:47 +0100
committerRoel Spilker <r.spilker@gmail.com>2019-03-26 00:24:47 +0100
commit1e49706bb8ebec196dfaec267e7a92ef93411d0d (patch)
tree410443f14c8799c9694c9944e4753226b84cdbc4 /src/core/lombok
parent65b285b0b5f850ef587f52e134c29eabd4a580ae (diff)
downloadlombok-1e49706bb8ebec196dfaec267e7a92ef93411d0d.tar.gz
lombok-1e49706bb8ebec196dfaec267e7a92ef93411d0d.tar.bz2
lombok-1e49706bb8ebec196dfaec267e7a92ef93411d0d.zip
[i2066] Map#putIfAbsent does not exist in java6
Diffstat (limited to 'src/core/lombok')
-rw-r--r--src/core/lombok/core/CleanupRegistry.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/core/CleanupRegistry.java b/src/core/lombok/core/CleanupRegistry.java
index 82a52fdb..d6aee477 100644
--- a/src/core/lombok/core/CleanupRegistry.java
+++ b/src/core/lombok/core/CleanupRegistry.java
@@ -21,8 +21,8 @@
*/
package lombok.core;
-import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.ConcurrentMap;
public class CleanupRegistry {
private static final class CleanupKey {
@@ -48,7 +48,7 @@ public class CleanupRegistry {
}
}
- private final Map<CleanupKey, CleanupTask> tasks = new ConcurrentHashMap<CleanupKey, CleanupTask>();
+ private final ConcurrentMap<CleanupKey, CleanupTask> tasks = new ConcurrentHashMap<CleanupKey, CleanupTask>();
public void registerTask(String key, Object target, CleanupTask task) {
CleanupKey ck = new CleanupKey(key, target);