[Dive4elements-commits] [PATCH 7 of 8] Use isEmpty for list check

Wald Commits scm-commit at wald.intevation.org
Mon Dec 17 16:19:19 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1355757409 -3600
# Node ID 139cf1f9a22cd480d2ea476538ca9b5179c4b952
# Parent  5411975223f079543f183c833bba58f4cfed1e4c
Use isEmpty for list check

diff -r 5411975223f0 -r 139cf1f9a22c flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Mon Dec 17 16:16:29 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java	Mon Dec 17 16:16:49 2012 +0100
@@ -677,8 +677,7 @@
     private void updateGrid() {
         clearGrid();
 
-        if (filteredCollections == null ||
-            filteredCollections.size() == 0) {
+        if (collections == null || collections.isEmpty()) {
             return;
         }
 


More information about the Dive4elements-commits mailing list