diff options
author | Harvey Harrison <[email protected]> | 2013-07-15 21:43:56 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-07-15 21:43:56 -0700 |
commit | 8a3fe617f28bbdfafede3bc6aa474b3b3bc2142a (patch) | |
tree | 3b18a70314c7631a392046c70b4bf6cf7c1d1a93 | |
parent | e18597bade3aff84f35614dd3207990cfbb530ff (diff) |
gluegen: remove implied use of StringBuffer while appending to StringBuilder
- call append on the StringBuilder we are using rather than using String concatenation, which
uses StringBuffer.
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/java/com/jogamp/gluegen/cgram/CSymbolTable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/CSymbolTable.java b/src/java/com/jogamp/gluegen/cgram/CSymbolTable.java index 2f25e75..318543b 100644 --- a/src/java/com/jogamp/gluegen/cgram/CSymbolTable.java +++ b/src/java/com/jogamp/gluegen/cgram/CSymbolTable.java @@ -121,8 +121,8 @@ public class CSymbolTable { Enumeration<String> ke = symTable.keys(); Enumeration<TNode> ve = symTable.elements(); while(ke.hasMoreElements()) { - buff.append(ke.nextElement().toString() + " (" + - TNode.getNameForType(((TNode)ve.nextElement()).getType()) + ")\n"); + buff.append(ke.nextElement().toString()); + buff.append(" (").append(TNode.getNameForType(ve.nextElement().getType())).append(")\n"); } buff.append("}\n"); return buff.toString(); |