mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[i2066] Map#putIfAbsent does not exist in java6
This commit is contained in:
1 parent
65b285b0b5
commit
1e49706bb8
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user