Checking String for emptiness with .lenght() is preferable since 1.6

This commit is contained in:
vraskulin 2017-02-28 11:46:51 +03:00
parent ad7d3c8078
commit 04973ea5aa
4 changed files with 5 additions and 5 deletions

View file

@ -143,7 +143,7 @@ public class ArrowBuilder {
if (map.containsKey(gameId)) {
Map<Type, List<Arrow>> innerMap = map.get(gameId);
java.util.List<Arrow> arrows = innerMap.get(type);
if (arrows != null && arrows.size() > 0) {
if (arrows != null && !arrows.isEmpty()) {
JPanel p = getArrowsPanel(gameId);
synchronized (map) {
for (Arrow arrow : arrows) {