diff options
Diffstat (limited to 'src/nativewindow/classes')
3 files changed, 6 insertions, 6 deletions
diff --git a/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java b/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java index 1f63beddd..b422f50e6 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java +++ b/src/nativewindow/classes/javax/media/nativewindow/Capabilities.java @@ -314,9 +314,9 @@ public class Capabilities implements CapabilitiesImmutable, Cloneable, Comparabl A value of -1 is interpreted as any value. */ public void setTransparentAlphaValue(int transValueAlpha) { transparentValueAlpha=transValueAlpha; } - public StringBuffer toString(StringBuffer sink) { + public StringBuilder toString(StringBuilder sink) { if(null == sink) { - sink = new StringBuffer(); + sink = new StringBuilder(); } if(onscreen) { sink.append("on-scr"); @@ -336,7 +336,7 @@ public class Capabilities implements CapabilitiesImmutable, Cloneable, Comparabl /** Returns a textual representation of this Capabilities object. */ public String toString() { - StringBuffer msg = new StringBuffer(); + StringBuilder msg = new StringBuilder(); msg.append("Caps["); toString(msg); msg.append("]"); diff --git a/src/nativewindow/classes/javax/media/nativewindow/CapabilitiesImmutable.java b/src/nativewindow/classes/javax/media/nativewindow/CapabilitiesImmutable.java index 848ec74e1..3d7362c40 100644 --- a/src/nativewindow/classes/javax/media/nativewindow/CapabilitiesImmutable.java +++ b/src/nativewindow/classes/javax/media/nativewindow/CapabilitiesImmutable.java @@ -110,7 +110,7 @@ public interface CapabilitiesImmutable extends VisualIDHolder, WriteCloneable { int hashCode(); /** Return a textual representation of this object. Use the given StringBuffer [optional]. */ - StringBuffer toString(StringBuffer sink); + StringBuilder toString(StringBuilder sink); /** Returns a textual representation of this object. */ @Override diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Capabilities.java b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Capabilities.java index f9eee67f3..0e69c738f 100644 --- a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Capabilities.java +++ b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Capabilities.java @@ -71,9 +71,9 @@ public class X11Capabilities extends Capabilities { } } - public StringBuffer toString(StringBuffer sink) { + public StringBuilder toString(StringBuilder sink) { if(null == sink) { - sink = new StringBuffer(); + sink = new StringBuilder(); } sink.append("x11 vid "); if(hasXVisualInfo()) { |