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/02/08 21:44:49 UTC

[commons-codec] branch master updated: Redundant specification of 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-codec.git


The following commit(s) were added to refs/heads/master by this push:
     new a3c23fe  Redundant specification of type arguments.
a3c23fe is described below

commit a3c23febce6c254f2e77197ed38ec3c6db72645a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Feb 8 16:44:46 2019 -0500

    Redundant specification of type arguments.
---
 .../java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
index 191f43f..5c697de 100644
--- a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
+++ b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
@@ -507,7 +507,7 @@ public class DaitchMokotoffSoundex implements StringEncoder {
 
             // use an EMPTY_LIST to avoid false positive warnings wrt potential null pointer access
             @SuppressWarnings("unchecked")
-            final List<Branch> nextBranches = branching ? new ArrayList<Branch>() : Collections.EMPTY_LIST;
+            final List<Branch> nextBranches = branching ? new ArrayList<>() : Collections.EMPTY_LIST;
 
             for (final Rule rule : rules) {
                 if (rule.matches(inputContext)) {