< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/util/TraceSignatureVisitor.java

Print this page

        

*** 68,78 **** * @author Eugene Kuleshov * @author Eric Bruneton */ public final class TraceSignatureVisitor extends SignatureVisitor { ! private final StringBuffer declaration; private boolean isInterface; private boolean seenFormalParameter; --- 68,78 ---- * @author Eugene Kuleshov * @author Eric Bruneton */ public final class TraceSignatureVisitor extends SignatureVisitor { ! private final StringBuilder declaration; private boolean isInterface; private boolean seenFormalParameter;
*** 80,92 **** private boolean seenParameter; private boolean seenInterface; ! private StringBuffer returnType; ! private StringBuffer exceptions; /** * Stack used to keep track of class types that have arguments. Each element * of this stack is a boolean encoded in one bit. The top of the stack is * the lowest order bit. Pushing false = *2, pushing true = *2+1, popping = --- 80,92 ---- private boolean seenParameter; private boolean seenInterface; ! private StringBuilder returnType; ! private StringBuilder exceptions; /** * Stack used to keep track of class types that have arguments. Each element * of this stack is a boolean encoded in one bit. The top of the stack is * the lowest order bit. Pushing false = *2, pushing true = *2+1, popping =
*** 104,117 **** private String separator = ""; public TraceSignatureVisitor(final int access) { super(Opcodes.ASM5); isInterface = (access & Opcodes.ACC_INTERFACE) != 0; ! this.declaration = new StringBuffer(); } ! private TraceSignatureVisitor(final StringBuffer buf) { super(Opcodes.ASM5); this.declaration = buf; } @Override --- 104,117 ---- private String separator = ""; public TraceSignatureVisitor(final int access) { super(Opcodes.ASM5); isInterface = (access & Opcodes.ACC_INTERFACE) != 0; ! this.declaration = new StringBuilder(); } ! private TraceSignatureVisitor(final StringBuilder buf) { super(Opcodes.ASM5); this.declaration = buf; } @Override
*** 173,190 **** seenParameter = false; } else { declaration.append('('); } declaration.append(')'); ! returnType = new StringBuffer(); return new TraceSignatureVisitor(returnType); } @Override public SignatureVisitor visitExceptionType() { if (exceptions == null) { ! exceptions = new StringBuffer(); } else { exceptions.append(", "); } // startType(); return new TraceSignatureVisitor(exceptions); --- 173,190 ---- seenParameter = false; } else { declaration.append('('); } declaration.append(')'); ! returnType = new StringBuilder(); return new TraceSignatureVisitor(returnType); } @Override public SignatureVisitor visitExceptionType() { if (exceptions == null) { ! exceptions = new StringBuilder(); } else { exceptions.append(", "); } // startType(); return new TraceSignatureVisitor(exceptions);
< prev index next >