io.netty.util.ConstantPool.class Maven / Gradle / Ivy
???? 2 ? io/netty/util/ConstantPool 4;>Ljava/lang/Object; java/lang/Object ConstantPool.java constants $Ljava/util/concurrent/ConcurrentMap; ;Ljava/util/concurrent/ConcurrentMap; nextId +Ljava/util/concurrent/atomic/AtomicInteger; ()V
(io/netty/util/internal/PlatformDependent newConcurrentHashMap &()Ljava/util/concurrent/ConcurrentMap;
)java/util/concurrent/atomic/AtomicInteger (I)V
this !Lio/netty/util/ConstantPool; Lio/netty/util/ConstantPool; valueOf =(Ljava/lang/Class;Ljava/lang/String;)Lio/netty/util/Constant; java/lang/NullPointerException $ firstNameComponent & (Ljava/lang/String;)V (
% ) secondNameComponent + java/lang/StringBuilder -
. java/lang/Class 0 getName ()Ljava/lang/String; 2 3
1 4 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 6 7
. 8 (C)Ljava/lang/StringBuilder; 6 :
. ; toString = 3
. > ,(Ljava/lang/String;)Lio/netty/util/Constant; " @
A Ljava/lang/Class<*>; Ljava/lang/Class; Ljava/lang/String; checkNotNullAndNotEmpty &(Ljava/lang/String;)Ljava/lang/String; F G
H getOrCreate J @
K name "java/util/concurrent/ConcurrentMap N get &(Ljava/lang/Object;)Ljava/lang/Object; P Q O R io/netty/util/Constant T ()I
V
W newConstant -(ILjava/lang/String;)Lio/netty/util/Constant; Y Z
[ putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ] ^ O _ tempConstant TT; Lio/netty/util/Constant; constant exists (Ljava/lang/String;)Z containsKey (Ljava/lang/Object;)Z g h O i newInstance
createOrThrow l @
m "java/lang/IllegalArgumentException o '%s' is already in use q java/lang/String s format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; u v
t w
p ) M !io/netty/util/internal/ObjectUtil { checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; } ~
| isEmpty ()Z ? ?
t ?
empty name ? Ljava/lang/Deprecated; getAndIncrement ? V
? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable +(Ljava/lang/Class<*>;Ljava/lang/String;)TT; (Ljava/lang/String;)TT; (ILjava/lang/String;)TT;
Deprecated RuntimeVisibleAnnotations
SourceFile! ?
? \ *? *? ? *? Y? ? ? ? ! ? ? " " # ? ? ;+?
? %Y'? *?,?
? %Y,? *?*? .Y? /+? 5? 9#? <,? 9? ?? B? ? ; ! ; &