diff options
author | Sven Gothel <[email protected]> | 2012-04-16 00:13:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-16 00:13:17 +0200 |
commit | 900b2a73b2d0b6f934718ac88015151c5bf7ccb8 (patch) | |
tree | bcc9f366685343b66d06372c427744c60839bfbb /src/java/com/jogamp/gluegen/cgram/TNode.java | |
parent | 94863d2e14ad7334fe5318d827878ce3b6424818 (diff) |
StringBuffer -> StringBuilder (Local objects, no concurrency)
Diffstat (limited to 'src/java/com/jogamp/gluegen/cgram/TNode.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/cgram/TNode.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/TNode.java b/src/java/com/jogamp/gluegen/cgram/TNode.java index e9185f9..f7feecc 100644 --- a/src/java/com/jogamp/gluegen/cgram/TNode.java +++ b/src/java/com/jogamp/gluegen/cgram/TNode.java @@ -155,7 +155,7 @@ public void initialize(AST tr) { /** Returns the text for this node and all children */ public String getAllChildrenText() { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append(getText()); for (TNode node = (TNode) getFirstChild(); node != null; node = (TNode) node.getNextSibling()) { buf.append(node.getText()); @@ -304,7 +304,7 @@ public void initialize(AST tr) { /** return a short string representation of the node */ public String toString() { - StringBuffer str = new StringBuffer( getNameForType(getType()) + + StringBuilder str = new StringBuilder( getNameForType(getType()) + "[" + getText() + ", " + "]"); if(this.getLineNum() != 0) |