diff options
Diffstat (limited to 'javax/sound/sampled')
-rw-r--r-- | javax/sound/sampled/AudioFormat.java | 4 | ||||
-rw-r--r-- | javax/sound/sampled/CompoundControl.java | 4 | ||||
-rw-r--r-- | javax/sound/sampled/DataLine.java | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/javax/sound/sampled/AudioFormat.java b/javax/sound/sampled/AudioFormat.java index 7b6ebc4b0..1f31c9929 100644 --- a/javax/sound/sampled/AudioFormat.java +++ b/javax/sound/sampled/AudioFormat.java @@ -38,6 +38,8 @@ exception statement from your version. */ package javax.sound.sampled; +import gnu.java.lang.CPStringBuilder; + import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -329,7 +331,7 @@ public class AudioFormat */ public String toString() { - StringBuffer result = new StringBuffer(); + CPStringBuilder result = new CPStringBuilder(); // usually at least encoding should be somewhat specified result.append(encoding); diff --git a/javax/sound/sampled/CompoundControl.java b/javax/sound/sampled/CompoundControl.java index 057bdfd72..556c805ad 100644 --- a/javax/sound/sampled/CompoundControl.java +++ b/javax/sound/sampled/CompoundControl.java @@ -38,6 +38,8 @@ exception statement from your version. */ package javax.sound.sampled; +import gnu.java.lang.CPStringBuilder; + /** * A compound control provides control over several other controls. * @since 1.3 @@ -88,7 +90,7 @@ public abstract class CompoundControl extends Control */ public String toString() { - StringBuffer result = new StringBuffer(); + CPStringBuilder result = new CPStringBuilder(); result.append(super.toString()); result.append(": "); for (int i = 0; i < memberControls.length; ++i) diff --git a/javax/sound/sampled/DataLine.java b/javax/sound/sampled/DataLine.java index b7cb70e49..4482c9885 100644 --- a/javax/sound/sampled/DataLine.java +++ b/javax/sound/sampled/DataLine.java @@ -37,6 +37,8 @@ exception statement from your version. */ package javax.sound.sampled; +import gnu.java.lang.CPStringBuilder; + /** * The DataLine interface adds data-related functionality to the Line * interface. For example, it adds methods to start and stop the data @@ -180,7 +182,7 @@ public interface DataLine extends Line */ public String toString() { - StringBuffer result = new StringBuffer(); + CPStringBuilder result = new CPStringBuilder(); result.append("formats: ["); for (int i = 0; i < formats.length; ++i) { |