v4: StringBuilder instead of StringBuffer

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9357]
This commit is contained in:
sharwell 2011-11-17 18:26:46 -08:00
parent 89b1d52c77
commit 57eb76aab3
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ public class ATNConfig {
}
public String toString(Recognizer<?> recog, boolean showAlt) {
StringBuffer buf = new StringBuffer();
StringBuilder buf = new StringBuilder();
// if ( state.ruleIndex>=0 ) {
// if ( recog!=null ) buf.append(recog.getRuleNames()[state.ruleIndex]+":");
// else buf.append(state.ruleIndex+":");
@ -158,7 +158,7 @@ public class ATNConfig {
buf.append(context);
}
if ( reachesIntoOuterContext>0 ) {
buf.append("|up="+reachesIntoOuterContext);
buf.append("|up=").append(reachesIntoOuterContext);
}
// if (isAccept) {
// buf.append("|=>"+alt);