From 1e49706bb8ebec196dfaec267e7a92ef93411d0d Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 26 Mar 2019 00:24:47 +0100 Subject: [i2066] Map#putIfAbsent does not exist in java6 --- src/core/lombok/core/CleanupRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 tasks = new ConcurrentHashMap(); + private final ConcurrentMap tasks = new ConcurrentHashMap(); public void registerTask(String key, Object target, CleanupTask task) { CleanupKey ck = new CleanupKey(key, target); -- cgit