Changeset 1585
- Timestamp:
- 12/11/09 08:58:19 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/java/org/jcoderz/commons/util/ArraysUtil.java
r1583 r1585 278 278 } 279 279 280 private static void appendArray (280 private static void appendArray ( 281 281 StringBuffer buf, Object array, int maxSize) 282 282 { … … 292 292 { 293 293 final int length = Array.getLength(array); 294 buf.append('['); 294 295 for (int i = 0; i < length; i++) 295 296 { 296 if (i == 0)297 if (i != 0) 297 298 { 298 buf.append('['); 299 } 300 else if (i == maxSize) 301 { 302 buf.append(",... in total "); 303 buf.append(length); 304 buf.append(" Elements"); 305 break; 306 } 307 else 308 { 299 if (i == maxSize) 300 { 301 buf.append(",... in total "); 302 buf.append(length); 303 buf.append(" Elements"); 304 break; 305 } 309 306 buf.append(", "); 310 307 }
