Skip to content

Commit 8e50846

Browse files
committed
Fix generics warning when creating a list
1 parent 6ab7e0c commit 8e50846

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/codec/language/DaitchMokotoffSoundex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private String[] soundex(final String source, final boolean branching) {
501501
}
502502

503503
// use an EMPTY_LIST to avoid false positive warnings wrt potential null pointer access
504-
final List<Branch> nextBranches = branching ? new ArrayList<>() : Collections.EMPTY_LIST;
504+
final List<Branch> nextBranches = branching ? new ArrayList<Branch>() : Collections.<Branch>emptyList();
505505

506506
for (final Rule rule : rules) {
507507
if (rule.matches(inputContext)) {

0 commit comments

Comments
 (0)