You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/12/20 16:00:02 UTC
[commons-collections] branch master updated: Remove redundant
generic spec.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new 8d595f3 Remove redundant generic spec.
8d595f3 is described below
commit 8d595f3840c663e3d56ef311d9186a2293a9437f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Dec 20 10:59:59 2019 -0500
Remove redundant generic spec.
---
src/main/java/org/apache/commons/collections4/CollectionUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/collections4/CollectionUtils.java b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
index 1030a58..5b11291 100644
--- a/src/main/java/org/apache/commons/collections4/CollectionUtils.java
+++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
@@ -1829,7 +1829,7 @@ public class CollectionUtils {
"The sum of start index and count can't be greater than the size of collection.");
}
- Collection<E> result = new ArrayList<E>(count);
+ Collection<E> result = new ArrayList<>(count);
Iterator<E> iterator = input.iterator();
while (count > 0) {
if (startIndex > 0) {