diff options
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
4 files changed, 7 insertions, 7 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLCapabilities.java b/src/jogl/classes/javax/media/opengl/GLCapabilities.java index 9022c7df5..8b832b310 100644 --- a/src/jogl/classes/javax/media/opengl/GLCapabilities.java +++ b/src/jogl/classes/javax/media/opengl/GLCapabilities.java @@ -401,9 +401,9 @@ public class GLCapabilities extends Capabilities implements Cloneable, GLCapabil return pbufferRenderToTextureRectangle; } - public StringBuffer toString(StringBuffer sink) { + public StringBuilder toString(StringBuilder sink) { if(null == sink) { - sink = new StringBuffer(); + sink = new StringBuilder(); } int samples = sampleBuffers ? numSamples : 0 ; @@ -448,7 +448,7 @@ public class GLCapabilities extends Capabilities implements Cloneable, GLCapabil /** Returns a textual representation of this GLCapabilities object. */ public String toString() { - StringBuffer msg = new StringBuffer(); + StringBuilder msg = new StringBuilder(); msg.append("GLCaps["); toString(msg); msg.append("]"); diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index 5ea7d8c3a..815da277c 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -396,7 +396,7 @@ public abstract class GLContext { * Classname, GL, GLDrawable */ public String toString() { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); this.append(sb); @@ -404,7 +404,7 @@ public abstract class GLContext { return sb.toString(); } - public final StringBuffer append(StringBuffer sb) { + public final StringBuilder append(StringBuilder sb) { sb.append("OpenGL "); sb.append(getGLVersionMajor()); sb.append("."); diff --git a/src/jogl/classes/javax/media/opengl/GLPipelineFactory.java b/src/jogl/classes/javax/media/opengl/GLPipelineFactory.java index 7a12e52c9..2bfc77d4a 100644 --- a/src/jogl/classes/javax/media/opengl/GLPipelineFactory.java +++ b/src/jogl/classes/javax/media/opengl/GLPipelineFactory.java @@ -159,7 +159,7 @@ public class GLPipelineFactory { } private static final String getArgsClassNameList(Class<?> arg0, Object[] args) { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append(arg0.getName()); if(args!=null) { for(int j=0; j<args.length; j++) { diff --git a/src/jogl/classes/javax/media/opengl/GLProfile.java b/src/jogl/classes/javax/media/opengl/GLProfile.java index 0bd805831..d61be515a 100644 --- a/src/jogl/classes/javax/media/opengl/GLProfile.java +++ b/src/jogl/classes/javax/media/opengl/GLProfile.java @@ -1654,7 +1654,7 @@ public class GLProfile { } private static String array2String(String[] list) { - StringBuffer msg = new StringBuffer(); + StringBuilder msg = new StringBuilder(); msg.append("["); for (int i = 0; i < list.length; i++) { if (i > 0) |