Prefer using Collections.emptyList() rather than new ArrayList

This commit is contained in:
Daniil Z committed 2021-03-01 19:49:54 +03:00
1 parent 15c2e2fa9a
commit afafcee2bb
6 files changed
+14 -13

No files matched your search

@@ -141,7 +141,7 @@ public class HuskhomesCommand extends CommandBase implements TabCompleter {
return tabCompletions;
} else {
return new ArrayList<>();
return Collections.emptyList();
}
}
}