
com.google.javascript.jscomp.WhitelistWarningsGuard.class Maven / Gradle / Ivy
The newest version!
???? 3+ ?
? ?
?
= ?
? ?
? ? ?
? ? ? ? ? ? ? ?
?
?
? ?
? ? ?
? ? ? ?
? ?
?
? ? ? ? ? ? ?
? ? ?
? ? ?
? ?
?
? ?
? ? ?
% ?
? ? ? ?
? ?
* ? ? ?
* ? ? ?
* ? ? ?
? ? ? ? ? ? ? ? ?
* ?
?
?
? ? ?
? ? ? ? WhitelistBuilder InnerClasses
LINE_SPLITTER !Lcom/google/common/base/Splitter; whitelist Ljava/util/Set; Signature #Ljava/util/Set; LINE_NUMBER Ljava/util/regex/Pattern; ()V Code LineNumberTable LocalVariableTable this 5Lcom/google/javascript/jscomp/WhitelistWarningsGuard; (Ljava/util/Set;)V LocalVariableTypeTable &(Ljava/util/Set;)V normalizeWhitelist (Ljava/util/Set;)Ljava/util/Set; trimmed Ljava/lang/String; line result
StackMapTable ? ? ? H(Ljava/util/Set;)Ljava/util/Set; level Q(Lcom/google/javascript/jscomp/JSError;)Lcom/google/javascript/jscomp/CheckLevel; error &Lcom/google/javascript/jscomp/JSError; containWarning (Ljava/lang/String;)Z formattedWarning getPriority ()I fromFile E(Ljava/io/File;)Lcom/google/javascript/jscomp/WhitelistWarningsGuard; file Ljava/io/File; loadWhitelistedJsWarnings (Ljava/io/File;)Ljava/util/Set; 3(Ljava/io/File;)Ljava/util/Set; 2(Lcom/google/common/io/CharSource;)Ljava/util/Set; e Ljava/io/IOException; supplier !Lcom/google/common/io/CharSource; ? F(Lcom/google/common/io/CharSource;)Ljava/util/Set; !(Ljava/io/Reader;)Ljava/util/Set; reader Ljava/io/Reader;
Exceptions 5(Ljava/io/Reader;)Ljava/util/Set;
formatWarning :(Lcom/google/javascript/jscomp/JSError;)Ljava/lang/String; ;(Lcom/google/javascript/jscomp/JSError;Z)Ljava/lang/String; i I withMetaData Z sb Ljava/lang/StringBuilder; lines Ljava/util/List; $Ljava/util/List; ? ? getFirstLine &(Ljava/lang/String;)Ljava/lang/String; warning
lineLength
access$000 #()Lcom/google/common/base/Splitter;
SourceFile WhitelistWarningsGuard.java RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value java.io, java.util.regex A B ? ? ? I P I J ? ? ? S T C D java/util/HashSet ? ? ? ? ? ? ? ? java/lang/String ? ? ? ? ? ? G H ? ? ? : ? ? ? ? ? ? ? z { b c ? ? ? ? f 3com/google/javascript/jscomp/WhitelistWarningsGuard k l
k n
k u java/io/IOException java/lang/RuntimeException I z | java/lang/StringBuilder V ~ V ? ! f
#
" ?#$%&'( :-?\d+)* *com/google/javascript/jscomp/WarningsGuard Dcom/google/javascript/jscomp/WhitelistWarningsGuard$WhitelistBuilder
java/util/Set java/util/Iterator java/util/List &com/google/common/collect/ImmutableSet of *()Lcom/google/common/collect/ImmutableSet; $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; trim ()Ljava/lang/String; isEmpty charAt (I)C java/util/regex/Pattern matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; java/util/regex/Matcher replaceFirst add (Ljava/lang/Object;)Z copyOf @(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet; 'com/google/javascript/jscomp/CheckLevel WARNING )Lcom/google/javascript/jscomp/CheckLevel; contains 3com/google/javascript/jscomp/WarningsGuard$Priority Priority SUPPRESS_BY_WHITELIST 5Lcom/google/javascript/jscomp/WarningsGuard$Priority; getValue !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset; com/google/common/io/Files asCharSource K(Ljava/io/File;Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource; com/google/common/io/CharSource
openStream ()Ljava/io/Reader; (Ljava/lang/Throwable;)V com/google/common/io/CharStreams readLines &(Ljava/lang/Readable;)Ljava/util/List; addAll (Ljava/util/Collection;)Z $com/google/javascript/jscomp/JSError
sourceName append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
lineNumber (I)Ljava/lang/StringBuilder; description com/google/common/base/Splitter splitToList *(Ljava/lang/CharSequence;)Ljava/util/List; get (I)Ljava/lang/Object; size toString indexOf (I)I substring (II)Ljava/lang/String; on $(C)Lcom/google/common/base/Splitter; compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; ! = A B C D E F G H I J K 6 *? ? ? L
@ A M N O I P K e *? +? W**+? ? ? L L M N O M N O C D Q C F E R S T K \? Y? M+?
N-? ? B-? ?
:? :? ???? #? ???,? ? ? ? W???,? ? L " X Y # Z * [ = ] @ a T b W c M 4 * * U V # 1 W V \ N O \ C D T X D Q \ C F T X F Y ? Z [? 0 \ \? E ] ^ _ K W **+? ? ? ? ?? L h l o M N O ` a Y b c K ? *? +? ? L y M N O d V e f K 1 ? ? ? L ~ M N O g h K 6 ? Y*? ? ? L ? M i j k l K = *? ? ? !? L ? ? ? M i j E m k n K b *? "? #?L? %Y+? &? $ L ? ? ? M o p q r Y H s E t k u K l *? W? Y? L+*? '? ( W+? L ? ?
? ? M v w
X D Q
X F x $ E y z { K ; *+? )? L ? M N O ` a z | K 2 ? *Y? +N-+? ,? -? -W? -+? .? /W? +? 0? 1:-2? -? 3 ?
? -W? 56? 4 ? -5? -? 3 ?
? -W????-6? -W-? 7? L 2 ? ? ? ? # ? / ? D ? H ? W ? m ? s ? z ? M > K ( } ~ N O ` a ? w ? ? / P ? ? Q / P ? ? Y ? # ?? ' ?? ' ? ? K ` *
? 8<?
*? 9K*? L ? ? ? ? M ? V
? ~ Y ? ? ? K ? ? L 6 ? J K -
? :? ;?