Skip to content

Commit

Permalink
chore: small refactoring for sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed Mar 3, 2025
1 parent 2a91dca commit f53463e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AccountingCoreEventHandlerDuplicateEventsTest {
private TransactionReconcilationRepository transactionReconcilationRepository;

@BeforeEach
public void clearDatabase(@Autowired Flyway flyway){
void clearDatabase(@Autowired Flyway flyway){
flyway.clean();
flyway.migrate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,25 +120,23 @@ public OrganisationView getOrganisationView(Organisation organisation) {
organisation.getPostCode(),
organisation.getProvince(),
organisation.getCountryCode(),
getAllCostCenter(organisation.getId()).stream().map(organisationCostCenter -> {
return new OrganisationCostCenterView(
getAllCostCenter(organisation.getId()).stream().map(organisationCostCenter ->
new OrganisationCostCenterView(
organisationCostCenter.getId() != null ? organisationCostCenter.getId().getCustomerCode() : null,
organisationCostCenter.getExternalCustomerCode(),
organisationCostCenter.getName()
);
}).collect(Collectors.toSet()),
getAllProjects(organisation.getId()).stream().map(organisationProject -> {
return new OrganisationCostCenterView(
)).collect(Collectors.toSet()),
getAllProjects(organisation.getId()).stream().map(organisationProject ->
new OrganisationCostCenterView(
organisationProject.getId() != null ? organisationProject.getId().getCustomerCode() : null,
organisationProject.getExternalCustomerCode(),
organisationProject.getName()
);
}).collect(Collectors.toSet()),
)).collect(Collectors.toSet()),
organisationCurrencyService.findAllByOrganisationId(organisation.getId())
.stream()
.map(organisationCurrency -> {
return organisationCurrency.getId() != null ? organisationCurrency.getId().getCustomerCode() : null;
}).collect(Collectors.toSet()),
.map(organisationCurrency ->
organisationCurrency.getId() != null ? organisationCurrency.getId().getCustomerCode() : null
).collect(Collectors.toSet()),
organisation.getWebSite(),
organisation.getLogo()
);
Expand Down

0 comments on commit f53463e

Please sign in to comment.