aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/cgram
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-07-15 21:43:56 -0700
committerHarvey Harrison <[email protected]>2013-07-15 21:43:56 -0700
commit8a3fe617f28bbdfafede3bc6aa474b3b3bc2142a (patch)
tree3b18a70314c7631a392046c70b4bf6cf7c1d1a93 /src/java/com/jogamp/gluegen/cgram
parente18597bade3aff84f35614dd3207990cfbb530ff (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]>
Diffstat (limited to 'src/java/com/jogamp/gluegen/cgram')
-rw-r--r--src/java/com/jogamp/gluegen/cgram/CSymbolTable.java4
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();