Jean-Francois Leveque

Simplification

......@@ -56,7 +56,7 @@ public class AccountServiceDefault implements AccountService {
List<Integer> integers = new ArrayList<>(indexedAccounts.size());
indexedAccounts.forEach(indexedAccount -> integers.add(indexedAccount.getUserId()));
if (integers.size() > 0) {
if (!integers.isEmpty()) {
return accountRepository.findByUserIdIn(integers);
}
......
......@@ -146,7 +146,7 @@ public class PublisherServiceDefault implements PublisherService {
List<Integer> integers = new ArrayList<>(indexedPublishers.size());
indexedPublishers.forEach(indexedPublisher -> integers.add(indexedPublisher.getPublisherId()));
if (integers.size() > 0) {
if (!integers.isEmpty()) {
return publisherVersionRepository.findByPublisherVersionIdIn(integers);
}
......