com.google.common.io.Closer.class Maven / Gradle / Ivy
???? 4 ? com/google/common/io/Closer SUPPRESSING_SUPPRESSOR (Lcom/google/common/io/Closer$Suppressor;
+(Lcom/google/common/io/Closer$Suppressor;)V
java/lang/Object ()V java/util/ArrayDeque
(I)V stack Ljava/util/Deque;
$com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; &com/google/common/io/Closer$Suppressor " #
suppressor % & ' ( ) java/util/Deque addFirst (Ljava/lang/Object;)V + , - thrown Ljava/lang/Throwable; / java/io/IOException
1 2 3 4 5 !com/google/common/base/Throwables throwIfInstanceOf )(Ljava/lang/Throwable;Ljava/lang/Class;)V
1 7 8 9 throwIfUnchecked (Ljava/lang/Throwable;)V ; java/lang/RuntimeException
: = 9 % ? @ A isEmpty ()Z % C D E removeFirst ()Ljava/lang/Object; G java/io/Closeable F I J close L java/lang/Throwable N O P suppress @(Ljava/io/Closeable;Ljava/lang/Throwable;Ljava/lang/Throwable;)V R java/lang/AssertionError
Q T )
K V W 9
addSuppressed Y Z [ \ ] com/google/common/io/Closeables logger Ljava/util/logging/Logger; _ ` a b c java/util/logging/Level WARNING Ljava/util/logging/Level; e java/lang/StringBuilder
d
h *Suppressing exception thrown when closing
d j k l append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
d n k o -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
d q r s toString ()Ljava/lang/String;
u v w x y java/util/logging/Logger log C(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V { O | *()Lcom/google/common/io/Closer$Suppressor; RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; Signature &Ljava/util/Deque; RuntimeVisibleAnnotations Ljavax/annotation/CheckForNull; create ()Lcom/google/common/io/Closer; Code LineNumberTable LocalVariableTable this Lcom/google/common/io/Closer; MethodParameters register ((Ljava/io/Closeable;)Ljava/io/Closeable; closeable Ljava/io/Closeable; LocalVariableTypeTable TC;
StackMapTable (TC;)TC; )Lcom/google/common/io/ParametricNullness; 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; RuntimeVisibleTypeAnnotations 5Lorg/checkerframework/checker/nullness/qual/Nullable; "RuntimeVisibleParameterAnnotations rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; e
Exceptions D(Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/RuntimeException; declaredType Ljava/lang/Class; Ljava/lang/Class; ? java/lang/Exception |(Ljava/lang/Throwable;Ljava/lang/Class;)Ljava/lang/RuntimeException;^Ljava/io/IOException;^TX; U(Ljava/lang/Throwable;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/RuntimeException;
declaredType1
declaredType2 Ljava/lang/Class; Ljava/lang/Class; ?(Ljava/lang/Throwable;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/RuntimeException;^Ljava/io/IOException;^TX1;^TX2; throwable lambda$static$0
suppressed
SourceFile Closer.java 6Lcom/google/common/io/ElementTypesAreNonnullByDefault; 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; BootstrapMethods P ?
? ? P ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses
Suppressor ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup 1 F # } ~ ? , - ? ? ? ? ? # ? Y? ? ? ? X
? \ *? *? Y? ? *+? ? ? !? ? b ^ c d ? ? ? # ? # } ~ ? ? ? g +?
*? +? $ +? ? p q t ? ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ?
? ? ? ? ? ? a +? W*+? *+.? 0+? 6? :Y+?