Skip to content

Commit f352d34

Browse files
committed
Fix pmd warnings.
1 parent b18b2cb commit f352d34

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/github/underscore

1 file changed

+1
-1
lines changed

src/main/java/com/github/underscore/U.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ public static <T> List<List<T>> chunk(final Iterable<T> iterable, final int size
18581858
}
18591859
int index = 0;
18601860
int length = size(iterable);
1861-
final List<List<T>> result = new ArrayList<List<T>>(size == 0 ? size : ((length / size) + 1));
1861+
final List<List<T>> result = new ArrayList<List<T>>(size == 0 ? size : (length / size) + 1);
18621862
while (index < length) {
18631863
result.add(newArrayList(iterable).subList(index, Math.min(length, index + size)));
18641864
index += step;

0 commit comments

Comments
 (0)