* Replace size() <= 0 with isEmpty() everywhere, ditto > 0 -> !isEmpty()

This commit is contained in:
zzz
2010-05-05 16:51:54 +00:00
parent 16bec08f09
commit 2baee7413c
90 changed files with 158 additions and 154 deletions

View File

@@ -73,7 +73,7 @@ public class AddressbookBean
}
public boolean isNotEmpty()
{
return addressbook != null && addressbook.size() > 0;
return addressbook != null && !addressbook.isEmpty();
}
public AddressbookBean()
{
@@ -89,7 +89,7 @@ public class AddressbookBean
{
long currentTime = System.currentTimeMillis();
if( properties.size() > 0 && currentTime - configLastLoaded < 10000 )
if( !properties.isEmpty() && currentTime - configLastLoaded < 10000 )
return;
FileInputStream fis = null;

View File

@@ -49,7 +49,7 @@ public class SubscriptionsBean
{
long currentTime = System.currentTimeMillis();
if( properties.size() > 0 && currentTime - configLastLoaded < 10000 )
if( !properties.isEmpty() && currentTime - configLastLoaded < 10000 )
return;
FileInputStream fis = null;