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/nativewindow/classes/javax | |
parent | ace2daf725dfc1aa700338fae71fe93a9d0fd865 (diff) |
StringBuffer -> StringBuilder (Local objects, no concurrency) ; Impacts: Capabilities/GLContext API 'toString(StringBuilder)'
Diffstat (limited to 'src/nativewindow/classes/javax')
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/Capabilities.java | 6 | ||||
-rw-r--r-- | src/nativewindow/classes/javax/media/nativewindow/CapabilitiesImmutable.java | 2 |
2 files changed, 4 insertions, 4 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 |