jdk/src/share/classes/javax/sound/sampled/CompoundControl.java
changeset 25144 e2bf17cee34b
parent 25128 2dfdfa369071
parent 24969 afa6934dd8e8
--- a/jdk/src/share/classes/javax/sound/sampled/CompoundControl.java	Wed Jun 11 10:53:27 2014 +0400
+++ b/jdk/src/share/classes/javax/sound/sampled/CompoundControl.java	Wed Jun 18 13:14:15 2014 -0700
@@ -74,18 +74,18 @@
     @Override
     public String toString() {
 
-        StringBuffer buf = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (int i = 0; i < controls.length; i++) {
             if (i != 0) {
-                buf.append(", ");
+                sb.append(", ");
                 if ((i + 1) == controls.length) {
-                    buf.append("and ");
+                    sb.append("and ");
                 }
             }
-            buf.append(controls[i].getType());
+            sb.append(controls[i].getType());
         }
 
-        return new String(getType() + " Control containing " + buf + " Controls.");
+        return new String(getType() + " Control containing " + sb + " Controls.");
     }
 
     /**