com.google.javascript.jscomp.AllowlistWarningsGuard$AllowlistBuilder.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7 Dcom/google/javascript/jscomp/AllowlistWarningsGuard$AllowlistBuilder this$0 5Lcom/google/javascript/jscomp/AllowlistWarningsGuard;
java/lang/Object ()V java/util/LinkedHashSet
warnings Ljava/util/Set; productName Ljava/lang/String; generatorTarget
headerNote
! " # $com/google/javascript/jscomp/JSError getDefaultLevel +()Lcom/google/javascript/jscomp/CheckLevel; % & ' ( ) 'com/google/javascript/jscomp/CheckLevel ERROR )Lcom/google/javascript/jscomp/CheckLevel;
% + , - equals (Ljava/lang/Object;)Z / 0 1 2 -
java/util/Set add 4 java/io/PrintStream
3 6 7 (Ljava/io/File;)V
9 : ; appendAllowlist (Ljava/io/PrintStream;)V
3 = > close @ java/lang/Throwable
? B C D
addSuppressed (Ljava/lang/Throwable;)V F ?# This is a list of legacy warnings that have yet to be fixed.
3 H I J append /(Ljava/lang/CharSequence;)Ljava/io/PrintStream;
L M N O P java/lang/String isEmpty ()Z / M S T U makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String; S X
#
Z [ \ ] ^ com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner;
` a b ] c com/google/common/base/Splitter $(C)Lcom/google/common/base/Splitter;
` e f g split .(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
Z i j k join ((Ljava/lang/Iterable;)Ljava/lang/String; S
n o p q r &com/google/common/collect/TreeMultimap create *()Lcom/google/common/collect/TreeMultimap; / t u v iterator ()Ljava/util/Iterator; x y z { P java/util/Iterator hasNext x } ~ next ()Ljava/lang/Object;
? ? ? getType /()Lcom/google/javascript/jscomp/DiagnosticType;
? ? ? ? ? 3com/google/javascript/jscomp/AllowlistWarningsGuard
formatWarning ;(Lcom/google/javascript/jscomp/JSError;Z)Ljava/lang/String; ? ? ? ? ? "com/google/common/collect/Multimap put '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ? ? ? keySet ()Ljava/util/Set; ? +com/google/javascript/jscomp/DiagnosticType ? ? ? ? ? -com/google/javascript/jscomp/DiagnosticGroups
DEPRECATED .Lcom/google/javascript/jscomp/DiagnosticGroup;
? ? ? ? ? ,com/google/javascript/jscomp/DiagnosticGroup matches 0(Lcom/google/javascript/jscomp/DiagnosticType;)Z ?
# Warning ? ? ? key ? : ? ? ? ?
LINE_SPLITTER !Lcom/google/common/base/Splitter; ? ? ? format
? ? ? ? ? #com/google/common/collect/Iterables get )(Ljava/lang/Iterable;I)Ljava/lang/Object;
3 ? ? ? println (Ljava/lang/String;)V ? ? ? ? *(Ljava/lang/Object;)Ljava/util/Collection; ? t ? java/util/Collection
3 ? ? flush ? )com/google/javascript/jscomp/ErrorHandler Signature 7Ljava/util/Set; RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; 8(Lcom/google/javascript/jscomp/AllowlistWarningsGuard;)V Code LineNumberTable LocalVariableTable this FLcom/google/javascript/jscomp/AllowlistWarningsGuard$AllowlistBuilder; MethodParameters setProductName Z(Ljava/lang/String;)Lcom/google/javascript/jscomp/AllowlistWarningsGuard$AllowlistBuilder; name RuntimeInvisibleAnnotations 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; setGeneratorTarget setNote note report R(Lcom/google/javascript/jscomp/CheckLevel;Lcom/google/javascript/jscomp/JSError;)V level error &Lcom/google/javascript/jscomp/JSError;
StackMapTable writeAllowlist stream Ljava/io/PrintStream; out Ljava/io/File; ? java/io/File
Exceptions ? java/io/IOException warning type -Lcom/google/javascript/jscomp/DiagnosticType; warningsByType $Lcom/google/common/collect/Multimap; LocalVariableTypeTable eLcom/google/common/collect/Multimap;
SourceFile AllowlistWarningsGuard.java NestHost BootstrapMethods ?
? ? ? T ? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; ? \# Please find some time and fix at least one of them and it will be the happiest day for .
? 2# When you fix any of these warnings, run task.
? #
InnerClasses AllowlistBuilder %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup ! ? ? ? ? ? ? ? ? ? ? ? h $*+? *? *?
Y? ? *? *? *? ? ? ? ? ? ? ? ? $ ? ? $ ? ? ? ? ? ? *+? *? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? *+? *? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? *+? *? ?
? ? ? ? ? ? ? ? ? ? ? ? ? m ,? ? $? *? ?*? ,? . W? ? ?
? ? ? ? ? ? ? ) ? ? ? ? ? ? ? 7 ? ? (? 3Y+? 5M*,? 8,?