diff options
author | Sven Gothel <[email protected]> | 2012-04-16 00:50:14 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-16 00:50:14 +0200 |
commit | ffb47c6610fc742926abc946fc14d12ee9c65a9a (patch) | |
tree | 36b157a02c244375ec26658d0444bb8d3b0e3380 /src/jogl/classes/com/jogamp/gluegen | |
parent | ace2daf725dfc1aa700338fae71fe93a9d0fd865 (diff) |
StringBuffer -> StringBuilder (Local objects, no concurrency) ; Impacts: Capabilities/GLContext API 'toString(StringBuilder)'
Diffstat (limited to 'src/jogl/classes/com/jogamp/gluegen')
-rw-r--r-- | src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index f3d0d37b1..1d9cf3668 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -564,7 +564,7 @@ public class BuildComposablePipeline { */ protected void postMethodEmissionHook(PrintWriter output) { output.println(" public String toString() {"); - output.println(" StringBuffer sb = new StringBuffer();"); + output.println(" StringBuilder sb = new StringBuilder();"); output.println(" sb.append(\"" + getOutputName() + " [ implementing " + baseInterfaceClass.getName() + ",\\n\\t\");"); if (null != prologClassOpt) { output.println(" sb.append(\" prolog: \"+" + getPrologObjectNameOpt() + ".toString()+\",\\n\\t\");"); @@ -859,7 +859,7 @@ public class BuildComposablePipeline { + ".glGetError();"); output.println(" if (err == GL_NO_ERROR) { return; }"); output.println(); - output.println(" StringBuffer buf = new StringBuffer(Thread.currentThread()+"); + output.println(" StringBuilder buf = new StringBuilder(Thread.currentThread()+"); output.println(" \" glGetError() returned the following error codes after a call to \" + caller + \": \");"); output.println(); output.println(" // Loop repeatedly to allow for distributed GL implementations,"); @@ -1010,7 +1010,7 @@ public class BuildComposablePipeline { output.println("protected String dumpArray(Object obj)"); output.println("{"); output.println(" if (obj == null) return \"[null]\";"); - output.println(" StringBuffer sb = new StringBuffer(\"[\");"); + output.println(" StringBuilder sb = new StringBuilder(\"[\");"); output.println(" int len = java.lang.reflect.Array.getLength(obj);"); output.println(" int count = Math.min(len,16);"); output.println(" for ( int i =0; i < count; i++ ) {"); |