[cvs] / jsr166 / src / main / java / util / concurrent / LinkedTransferQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/concurrent/LinkedTransferQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.82, Fri Feb 20 03:09:08 2015 UTC revision 1.83, Wed Mar 4 00:22:30 2015 UTC
# Line 827  Line 827 
827              if (size == 0)              if (size == 0)
828                  return "[]";                  return "[]";
829    
830              // Copy each string into a perfectly sized char[]              return Helpers.toString(a, size, charLength);
             final char[] chars = new char[charLength + 2 * size];  
             chars[0] = '[';  
             int j = 1;  
             for (int i = 0; i < size; i++) {  
                 if (i > 0) {  
                     chars[j++] = ',';  
                     chars[j++] = ' ';  
                 }  
                 String s = a[i];  
                 int len = s.length();  
                 s.getChars(0, len, chars, j);  
                 j += len;  
             }  
             chars[j] = ']';  
             return new String(chars);  
831          }          }
832      }      }
833    

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8