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 2020/02/14 23:51:28 UTC

[commons-lang] branch master updated: Remove redundant type arguments.

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-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 53f223d  Remove redundant type arguments.
53f223d is described below

commit 53f223d3e397fe04ea76bf445e2db37fd09753be
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Feb 14 18:51:24 2020 -0500

    Remove redundant type arguments.
    
    Use final.
---
 src/main/java/org/apache/commons/lang3/Streams.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/Streams.java b/src/main/java/org/apache/commons/lang3/Streams.java
index 6a35725..07a400d 100644
--- a/src/main/java/org/apache/commons/lang3/Streams.java
+++ b/src/main/java/org/apache/commons/lang3/Streams.java
@@ -439,13 +439,13 @@ public class Streams {
         private static final Set<Characteristics> characteristics = Collections.emptySet();
         private final Class<O> elementType;
 
-        public ArrayCollector(Class<O> pElementType) {
+        public ArrayCollector(final Class<O> pElementType) {
             elementType = pElementType;
         }
 
         @Override
         public Supplier<List<O>> supplier() {
-            return () -> new ArrayList<O>();
+            return () -> new ArrayList<>();
         }
 
         @Override
@@ -487,7 +487,7 @@ public class Streams {
      * @return a {@code Collector} which collects all the input elements into an
      * array, in encounter order
      */
-    public static <O extends Object> Collector<O, ?, O[]> toArray(Class<O> pElementType) {
-        return new ArrayCollector<O>(pElementType);
+    public static <O extends Object> Collector<O, ?, O[]> toArray(final Class<O> pElementType) {
+        return new ArrayCollector<>(pElementType);
     }
 }