FINERACT-2169: Provision entries api refactor;

This commit is contained in:
viktorpavlenko
2025-03-14 18:09:40 +00:00
committed by Adam Saghy
parent d96e78a4f7
commit 056b3edaad
5 changed files with 84 additions and 66 deletions
@@ -132,7 +132,7 @@ public class ProvisioningEntriesWritePlatformServiceJpaRepositoryImpl implements
try {
Collection<ProvisioningCriteriaData> criteriaCollection = this.provisioningCriteriaReadPlatformService
.retrieveAllProvisioningCriterias();
if (criteriaCollection == null || criteriaCollection.size() == 0) {
if (criteriaCollection == null || criteriaCollection.isEmpty()) {
throw new NoProvisioningCriteriaDefinitionFound();
}
ProvisioningEntry requestedEntry = createProvisioningEntry(createdDate, addJournalEntries);