添加注解,标记为线程安全。

feature/net-util
ZhouXY108 2023-07-06 10:06:39 +08:00
parent b0a5255fbc
commit aaab9362b3
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
public class SafeConcurrentHashMap<K, V> extends ConcurrentHashMap<K, V> {
private static final long serialVersionUID = 4352954948768449595L;