Fixing squid:S1155 - Collection.isEmpty() should be used to test for emptiness

This commit is contained in:
Artyom Melnikov
2016-06-22 13:43:15 +03:00
parent a64a020e36
commit 0a3b819991
66 changed files with 92 additions and 92 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ public class TestQueryCache extends BaseTestCase {
BeanCollection<Customer> bc = (BeanCollection<Customer>) list;
Assert.assertFalse(bc.isReadOnly());
Assert.assertFalse(bc.isEmpty());
Assert.assertTrue(list.size() > 0);
Assert.assertTrue(!list.isEmpty());
Assert.assertTrue(Ebean.getBeanState(list.get(0)).isReadOnly());
List<Customer> list2 = Ebean.find(Customer.class).setUseQueryCache(true).setReadOnly(true).where()