Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -671,7 +671,7 @@ public class RRD4jPersistenceService implements QueryablePersistenceService {
|
||||
|
||||
public boolean isValid() { // a valid configuration must be initialized
|
||||
// and contain at least one function
|
||||
return (isInitialized && (archives.size() > 0));
|
||||
return isInitialized && !archives.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user