From 8a3fe617f28bbdfafede3bc6aa474b3b3bc2142a Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 15 Jul 2013 21:43:56 -0700 Subject: 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 --- src/java/com/jogamp/gluegen/cgram/CSymbolTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/gluegen') 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 ke = symTable.keys(); Enumeration 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(); -- cgit v1.2.3