This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository lima. See https://gitlab.nuiton.org/chorem/lima.git commit 3af75d9d377cc483f8b503e655f54b8b85be98fb Author: David Cossé <cosse@codelutin.com> Date: Mon Oct 16 01:03:14 2017 +0200 refs #1396 [ISO] refactoring --- .../java/org/chorem/lima/business/ejb/ImportServiceImpl.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java index e7da7a83..5afc4c78 100644 --- a/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java +++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java @@ -953,7 +953,7 @@ public class ImportServiceImpl extends AbstractLimaService implements ImportServ else if (account == null) { importResult.addException(new ImportFileException(t("lima.import.error.invalidAccountNumber", targetedAccount))); importResult.increaseIgnored(); - result =false; + result = false; } return result; } @@ -979,11 +979,11 @@ public class ImportServiceImpl extends AbstractLimaService implements ImportServ try { List<Account> accounts = accountService.getAllAccounts(); - accounts = accounts == null ? new ArrayList<Account>() : accounts; + accounts = accounts == null ? new ArrayList<>() : accounts; Map<String, Account> indexedAccounts = Maps.newHashMap(Maps.uniqueIndex(accounts, GET_ACCOUNT_NUMBER)); List<EntryBook> entryBooks = entryBookService.getAllEntryBooks(); - entryBooks = entryBooks == null ? new ArrayList<EntryBook>() : entryBooks; + entryBooks = entryBooks == null ? new ArrayList<>() : entryBooks; Map<String, EntryBook> indexedEntryBooks = Maps.newHashMap(Maps.uniqueIndex(entryBooks, GET_ENTRY_BOOK_CODE)); List<EntryEBP> entryEBPs = loadDateOrderedEntryEBPbeans(contents); @@ -996,8 +996,7 @@ public class ImportServiceImpl extends AbstractLimaService implements ImportServ Date fiscalPeriodsEndingDate = fiscalPeriods.get(fiscalPeriods.size() - 1).getEndDate(); Map<EntryBook, Map<Date, FinancialTransaction>> entryBookFinancialTransactionByDate = getEntryBookFinancialTransactionOrderedByDate(fiscalPeriodsBeginDate, fiscalPeriodsEndingDate); - FinancialPeriodTopiaDao financialPeriodTopiaDao = - getDaoHelper().getFinancialPeriodDao(); + FinancialPeriodTopiaDao financialPeriodTopiaDao = getDaoHelper().getFinancialPeriodDao(); // for all unblocked financialperiod List<FinancialPeriod> financialPeriods = financialPeriodTopiaDao.forProperties(FinancialPeriod.PROPERTY_LOCKED, false).findAll(); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.