Author: tmortagne
Date: 2008-01-17 17:36:13 +0100 (Thu, 17 Jan 2008)
New Revision: 6940

Modified:
   
xwiki-platform/xwiki-plugins/trunk/application-manager/src/main/java/com/xpn/xwiki/plugin/applicationmanager/doc/XWikiApplicationClass.java
Log:
Replace "List.size == 0" by "List.isEmpty()"

Modified: 
xwiki-platform/xwiki-plugins/trunk/application-manager/src/main/java/com/xpn/xwiki/plugin/applicationmanager/doc/XWikiApplicationClass.java
===================================================================
--- 
xwiki-platform/xwiki-plugins/trunk/application-manager/src/main/java/com/xpn/xwiki/plugin/applicationmanager/doc/XWikiApplicationClass.java
 2008-01-17 16:34:05 UTC (rev 6939)
+++ 
xwiki-platform/xwiki-plugins/trunk/application-manager/src/main/java/com/xpn/xwiki/plugin/applicationmanager/doc/XWikiApplicationClass.java
 2008-01-17 16:36:13 UTC (rev 6940)
@@ -341,7 +341,7 @@
         List listApp =
             context.getWiki().getStore().searchDocuments(where, 
parameterValues, context);
 
-        if (listApp.size() == 0) {
+        if (listApp.isEmpty()) {
             if (validate) {
                 throw new ApplicationManagerException(
                     ApplicationManagerException.ERROR_AM_DOESNOTEXIST,

_______________________________________________
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to