com.groupbyinc.flux.common.ParseField.class Maven / Gradle / Ivy
???? 4 ? %com/groupbyinc/flux/common/ParseField java/lang/Object ParseField.java 2com/groupbyinc/flux/common/ParseField$CommonFields CommonFields DEPRECATION_LOGGER 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; name Ljava/lang/String; deprecatedNames [Ljava/lang/String; allReplacedWith allNames ((Ljava/lang/String;[Ljava/lang/String;)V ()V
java/lang/String "com/groupbyinc/flux/common/Strings EMPTY_ARRAY
" java/util/HashSet $
% java/util/Collections ' addAll ,(Ljava/util/Collection;[Ljava/lang/Object;)Z ) *
( + size ()I - .
% / toArray (([Ljava/lang/Object;)[Ljava/lang/Object; 1 2
% 3
java/util/Set 5 add (Ljava/lang/Object;)Z 7 8 6 9 6 / 6 3 = set 'Ljava/util/HashSet; Ljava/util/HashSet; this 'Lcom/groupbyinc/flux/common/ParseField; #Ljava/util/Set; Ljava/util/Set; getPreferredName ()Ljava/lang/String; getAllNamesIncludedDeprecated ()[Ljava/lang/String; withDeprecation <([Ljava/lang/String;)Lcom/groupbyinc/flux/common/ParseField;
L withAllDeprecated ;(Ljava/lang/String;)Lcom/groupbyinc/flux/common/ParseField; H I
P J K
R
parseField match (Ljava/lang/String;)Z fieldName cannot be null W java/util/Objects Y requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; [ \
Z ] equals _ 8
` java/lang/StringBuilder b
c Deprecated field [ e append -(Ljava/lang/String;)Ljava/lang/StringBuilder; g h
c i ] used, expected [ k ] instead m toString o G
c p ] used, replaced by [ r ] t
v 4com/groupbyinc/flux/common/logging/DeprecationLogger x
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V z {
y | msg depName fieldName F G
? getAllReplacedWith getDeprecatedNames *com/groupbyinc/flux/common/logging/Loggers ? getLogger K(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ?
? ? ;(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V ?
y ? Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable
SourceFile InnerClasses !
? ? ) q*? *? *+? ,? ,??
*? !? #? #? %Y? &N-,? ,W*--? 0? ? 4? ? #? %Y? &N-+? : W-*? #? ,W*--? ; ? ? < ? ? >? ? 4 ) ? A q B C q q
I ( E ? ) ? @ I ( D ? 6
2 ' 3 4 5 ! 7 ) 8 / 9 A ; I <