From 900b2a73b2d0b6f934718ac88015151c5bf7ccb8 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 16 Apr 2012 00:13:17 +0200 Subject: StringBuffer -> StringBuilder (Local objects, no concurrency) --- src/java/com/jogamp/gluegen/CMethodBindingEmitter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java') diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java index 23c2b95..eecd29d 100644 --- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java @@ -1090,7 +1090,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { } protected String jniMangle(MethodBinding binding) { - StringBuffer buf = new StringBuffer(); + StringBuilder buf = new StringBuilder(); buf.append(jniMangle(getName())); buf.append(getImplSuffix()); buf.append("__"); @@ -1147,7 +1147,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { return buf.toString(); } - protected void jniMangle(Class c, StringBuffer res, boolean syntheticArgument) { + protected void jniMangle(Class c, StringBuilder res, boolean syntheticArgument) { if (c.isPrimitive()) { if (c == Boolean.TYPE) res.append("Z"); else if (c == Byte.TYPE) res.append("B"); -- cgit v1.2.3