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:46:34 UTC

[commons-codec] branch master updated: Don't need @SuppressWarnings("unchecked")

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 a760cba  Don't need @SuppressWarnings("unchecked")
a760cba is described below

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

    Don't need @SuppressWarnings("unchecked")
---
 .../java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java    | 1 -
 1 file changed, 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 5c697de..a8d9af0 100644
--- a/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
+++ b/src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java
@@ -506,7 +506,6 @@ 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<>() : Collections.EMPTY_LIST;
 
             for (final Rule rule : rules) {