public class com.sun.tools.sjavac.comp.SmartWriter extends java.io.Writer
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.sun.tools.sjavac.comp.SmartWriter
  super_class: java.io.Writer
{
  java.lang.String name;
    descriptor: Ljava/lang/String;
    flags: (0x0000) 

  javax.tools.JavaFileObject file;
    descriptor: Ljavax/tools/JavaFileObject;
    flags: (0x0000) 

  java.lang.String oldContent;
    descriptor: Ljava/lang/String;
    flags: (0x0000) 

  java.io.StringWriter newContent;
    descriptor: Ljava/io/StringWriter;
    flags: (0x0000) 

  boolean closed;
    descriptor: Z
    flags: (0x0000) 

  public void <init>(javax.tools.JavaFileObject, java.lang.String, java.lang.String);
    descriptor: (Ljavax/tools/JavaFileObject;Ljava/lang/String;Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=4, args_size=4
        start local 0 // com.sun.tools.sjavac.comp.SmartWriter this
        start local 1 // javax.tools.JavaFileObject f
        start local 2 // java.lang.String s
        start local 3 // java.lang.String n
         0: .line 52
            aload 0 /* this */
            invokespecial java.io.Writer.<init>:()V
         1: .line 49
            aload 0 /* this */
            new java.io.StringWriter
            dup
            invokespecial java.io.StringWriter.<init>:()V
            putfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
         2: .line 53
            aload 0 /* this */
            aload 3 /* n */
            putfield com.sun.tools.sjavac.comp.SmartWriter.name:Ljava/lang/String;
         3: .line 54
            aload 0 /* this */
            aload 1 /* f */
            putfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
         4: .line 55
            aload 0 /* this */
            aload 2 /* s */
            putfield com.sun.tools.sjavac.comp.SmartWriter.oldContent:Ljava/lang/String;
         5: .line 56
            aload 0 /* this */
            new java.io.StringWriter
            dup
            invokespecial java.io.StringWriter.<init>:()V
            putfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
         6: .line 57
            aload 0 /* this */
            iconst_0
            putfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
         7: .line 58
            return
        end local 3 // java.lang.String n
        end local 2 // java.lang.String s
        end local 1 // javax.tools.JavaFileObject f
        end local 0 // com.sun.tools.sjavac.comp.SmartWriter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lcom/sun/tools/sjavac/comp/SmartWriter;
            0    8     1     f  Ljavax/tools/JavaFileObject;
            0    8     2     s  Ljava/lang/String;
            0    8     3     n  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      f     
      s     
      n     

  public void write(char[], int, int);
    descriptor: ([CII)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // com.sun.tools.sjavac.comp.SmartWriter this
        start local 1 // char[] chars
        start local 2 // int i
        start local 3 // int i1
         0: .line 61
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
            aload 1 /* chars */
            iload 2 /* i */
            iload 3 /* i1 */
            invokevirtual java.io.StringWriter.write:([CII)V
         1: .line 62
            return
        end local 3 // int i1
        end local 2 // int i
        end local 1 // char[] chars
        end local 0 // com.sun.tools.sjavac.comp.SmartWriter this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lcom/sun/tools/sjavac/comp/SmartWriter;
            0    2     1  chars  [C
            0    2     2      i  I
            0    2     3     i1  I
    MethodParameters:
       Name  Flags
      chars  
      i      
      i1     

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=6, args_size=1
        start local 0 // com.sun.tools.sjavac.comp.SmartWriter this
         0: .line 65
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
            ifeq 1
            return
         1: .line 66
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
         2: .line 67
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
            invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
            astore 1 /* s */
        start local 1 // java.lang.String s
         3: .line 68
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.oldContent:Ljava/lang/String;
            aload 1 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 15
         4: .line 69
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
            invokeinterface javax.tools.JavaFileObject.getName:()Ljava/lang/String;
            getstatic java.io.File.separatorChar:C
            invokevirtual java.lang.String.lastIndexOf:(I)I
            istore 2 /* p */
        start local 2 // int p
         5: .line 70
            aconst_null
            astore 3
            aconst_null
            astore 4
         6: aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
            invokeinterface javax.tools.JavaFileObject.openWriter:()Ljava/io/Writer;
            astore 5 /* writer */
        start local 5 // java.io.Writer writer
         7: .line 71
            aload 5 /* writer */
            aload 1 /* s */
            invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
         8: .line 72
            aload 5 /* writer */
            ifnull 14
            aload 5 /* writer */
            invokevirtual java.io.Writer.close:()V
            goto 14
      StackMap locals: com.sun.tools.sjavac.comp.SmartWriter java.lang.String int java.lang.Throwable java.lang.Throwable java.io.Writer
      StackMap stack: java.lang.Throwable
         9: astore 3
            aload 5 /* writer */
            ifnull 10
            aload 5 /* writer */
            invokevirtual java.io.Writer.close:()V
        end local 5 // java.io.Writer writer
      StackMap locals:
      StackMap stack:
        10: aload 3
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        11: astore 4
            aload 3
            ifnonnull 12
            aload 4
            astore 3
            goto 13
      StackMap locals:
      StackMap stack:
        12: aload 3
            aload 4
            if_acmpeq 13
            aload 3
            aload 4
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        13: aload 3
            athrow
        14: .line 73
      StackMap locals:
      StackMap stack:
            new java.lang.StringBuilder
            dup
            ldc "Writing "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
            invokeinterface javax.tools.JavaFileObject.getName:()Ljava/lang/String;
            iload 2 /* p */
            iconst_1
            iadd
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
        end local 2 // int p
        15: .line 75
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String s
        end local 0 // com.sun.tools.sjavac.comp.SmartWriter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   16     0    this  Lcom/sun/tools/sjavac/comp/SmartWriter;
            3   16     1       s  Ljava/lang/String;
            5   15     2       p  I
            7   10     5  writer  Ljava/io/Writer;
      Exception table:
        from    to  target  type
           7     8       9  any
           6    11      11  any
    Exceptions:
      throws java.io.IOException

  public void flush();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=1, args_size=1
        start local 0 // com.sun.tools.sjavac.comp.SmartWriter this
         0: .line 78
            return
        end local 0 // com.sun.tools.sjavac.comp.SmartWriter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/tools/sjavac/comp/SmartWriter;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "SmartWriter.java"