adamsaghy commented on PR #5780:
URL: https://github.com/apache/fineract/pull/5780#issuecomment-4281066701
```
/home/runner/work/fineract/fineract/fineract-tax/src/test/java/org/apache/fineract/portfolio/tax/service/ChargeTaxApplicationServiceTest.java:66:
error: [JavaTimeDefaultTimeZone] LocalDate.now() is not allowed because it
silently uses the system default time-zone. You must pass an explicit time-zone
(e.g., ZoneId.of("America/Los_Angeles")) to this method.
> Task :fineract-tax:compileTestJava FAILED
Map<TaxComponent, BigDecimal> result = service.computeTax(null, new
BigDecimal("100.00"), LocalDate.now(), 6);
^
> Task :fineract-loan:compileJava
(see https://errorprone.info/bugpattern/JavaTimeDefaultTimeZone)
Did you mean 'Map<TaxComponent, BigDecimal> result =
service.computeTax(null, new BigDecimal("100.00"),
LocalDate.now(ZoneId.systemDefault()), 6);'?
/home/runner/work/fineract/fineract/fineract-tax/src/test/java/org/apache/fineract/portfolio/tax/service/ChargeTaxApplicationServiceTest.java:75:
error: [JavaTimeDefaultTimeZone] LocalDate.now() is not allowed because it
silently uses the system default time-zone. You must pass an explicit time-zone
(e.g., ZoneId.of("America/Los_Angeles")) to this method.
Map<TaxComponent, BigDecimal> result = service.computeTax(taxGroup,
null, LocalDate.now(), 6);
^
(see https://errorprone.info/bugpattern/JavaTimeDefaultTimeZone)
Did you mean 'Map<TaxComponent, BigDecimal> result =
service.computeTax(taxGroup, null, LocalDate.now(ZoneId.systemDefault()), 6);'?
/home/runner/work/fineract/fineract/fineract-tax/src/test/java/org/apache/fineract/portfolio/tax/service/ChargeTaxApplicationServiceTest.java:84:
error: [JavaTimeDefaultTimeZone] LocalDate.now() is not allowed because it
silently uses the system default time-zone. You must pass an explicit time-zone
(e.g., ZoneId.of("America/Los_Angeles")) to this method.
Map<TaxComponent, BigDecimal> result = service.computeTax(taxGroup,
BigDecimal.ZERO, LocalDate.now(), 6);
^
(see https://errorprone.info/bugpattern/JavaTimeDefaultTimeZone)
Did you mean 'Map<TaxComponent, BigDecimal> result =
service.computeTax(taxGroup, BigDecimal.ZERO,
LocalDate.now(ZoneId.systemDefault()), 6);'?
3 errors
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]