aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);