Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix generics warning when creating a list
  • Loading branch information
kinow committed Feb 16, 2019
commit 8e5084631769bd7973110cf2e40dd374baaeec19
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ private String[] soundex(final String source, final boolean branching) {
}

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

for (final Rule rule : rules) {
if (rule.matches(inputContext)) {
Expand Down