Use Collection.isEmpty (#10525)
Fixes 47 SAT UseCollectionIsEmpty findings. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -130,7 +130,7 @@ public class PhonebookProfileFactory implements ProfileFactory, ProfileTypeProvi
|
||||
thingName + " - " + phonebook.getName()))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (parameterOptions.size() > 0) {
|
||||
if (!parameterOptions.isEmpty()) {
|
||||
parameterOptions.add(new ParameterOption(thingUid, thingName));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user