jdk/src/share/classes/javax/print/attribute/SetOfIntegerSyntax.java
changeset 25144 e2bf17cee34b
parent 25093 8ec5ec01740e
parent 24969 afa6934dd8e8
child 25770 d132697706ea
equal deleted inserted replaced
25143:aade36e70da0 25144:e2bf17cee34b
   538      * array form, where each range is represented as <CODE>"<I>i</I>"</CODE> if
   538      * array form, where each range is represented as <CODE>"<I>i</I>"</CODE> if
   539      * the lower bound equals the upper bound or
   539      * the lower bound equals the upper bound or
   540      * <CODE>"<I>i</I>-<I>j</I>"</CODE> otherwise.
   540      * <CODE>"<I>i</I>-<I>j</I>"</CODE> otherwise.
   541      */
   541      */
   542     public String toString() {
   542     public String toString() {
   543         StringBuffer result = new StringBuffer();
   543         StringBuilder result = new StringBuilder();
   544         int n = members.length;
   544         int n = members.length;
   545         for (int i = 0; i < n; i++) {
   545         for (int i = 0; i < n; i++) {
   546             if (i > 0) {
   546             if (i > 0) {
   547                 result.append (',');
   547                 result.append (',');
   548             }
   548             }