commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-io git commit: Remove redundant type arguments.
Date Fri, 08 Jun 2018 17:03:47 GMT
Repository: commons-io
Updated Branches:
  refs/heads/master 029830593 -> 9ba69d7b9


Remove redundant type arguments.

Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/9ba69d7b
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/9ba69d7b
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/9ba69d7b

Branch: refs/heads/master
Commit: 9ba69d7b9af1ab71e0ca2d0044f464261ae6a199
Parents: 0298305
Author: Gary Gregory <garydgregory@gmail.com>
Authored: Fri Jun 8 11:03:43 2018 -0600
Committer: Gary Gregory <garydgregory@gmail.com>
Committed: Fri Jun 8 11:03:43 2018 -0600

----------------------------------------------------------------------
 src/main/java/org/apache/commons/io/FilenameUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/9ba69d7b/src/main/java/org/apache/commons/io/FilenameUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/io/FilenameUtils.java b/src/main/java/org/apache/commons/io/FilenameUtils.java
index e3c3916..517450c 100644
--- a/src/main/java/org/apache/commons/io/FilenameUtils.java
+++ b/src/main/java/org/apache/commons/io/FilenameUtils.java
@@ -1569,7 +1569,7 @@ public class FilenameUtils {
         }
         String[] octets = inet6Address.split(":");
         if (containsCompressedZeroes) {
-            List<String> octetList = new ArrayList<String>(Arrays.asList(octets));
+            List<String> octetList = new ArrayList<>(Arrays.asList(octets));
             if (inet6Address.endsWith("::")) {
                 // String.split() drops ending empty segments
                 octetList.add("");


Mime
View raw message