forked from External/mage
Checking String for emptiness with .lenght() is preferable since 1.6
This commit is contained in:
parent
ad7d3c8078
commit
04973ea5aa
4 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue