adamsaghy commented on PR #5595:
URL: https://github.com/apache/fineract/pull/5595#issuecomment-4073473167
```
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':fineract-core:spotlessJavaCheck'.
> The following files had format violations:
src/main/java/org/apache/fineract/portfolio/calendar/service/CalendarUtils.java
@@ -299,10 +299,11 @@
················NthDayNameEnum·nthDayName·=·NthDayNameEnum.from(nthDayType.toString());
················DayNameEnum·weekdayType·=·DayNameEnum.from(weekDay.getDay().name());
················if·(recur.getInterval()·==·1·||·recur.getInterval()·==·-1)·{
-····················humanReadable·=·"Monthly·on·"·+·nthDayName.getCode().toLowerCase(java.util.Locale.ROOT)·+·"·"·+·weekdayType.getCode().toLowerCase(java.util.Locale.ROOT);
+····················humanReadable·=·"Monthly·on·"·+·nthDayName.getCode().toLowerCase(java.util.Locale.ROOT)·+·"·"
+····························+·weekdayType.getCode().toLowerCase(java.util.Locale.ROOT);
················}·else·{
-····················humanReadable·=·"Every·"·+·recur.getInterval()·+·"·months·on·"·+·nthDayName.getCode().toLowerCase(java.util.Locale.ROOT)·+·"·"
-····························+·weekdayType.getCode().toLowerCase(java.util.Locale.ROOT);
+····················humanReadable·=·"Every·"·+·recur.getInterval()·+·"·months·on·"·+·nthDayName.getCode().toLowerCase(java.util.Locale.ROOT)
+····························+·"·"·+·weekdayType.getCode().toLowerCase(java.util.Locale.ROOT);
················}
············}·else·if·(monthDay·!=·null)·{
················if·(monthDay·==·-1)·{
@@ -756,7 +757,8 @@
············if·(nthDayType·==·NthDayType.ONE·||·nthDayType·==·NthDayType.TWO·||·nthDayType·==·NthDayType.THREE
····················||·nthDayType·==·NthDayType.FOUR)·{
················baseDataValidator.reset().parameter(repeatsOnDayParamName).value(repeatsOnDay).cantBeBlankWhenParameterProvidedIs(
-························repeatsOnNthDayOfMonthParamName,·NthDayNameEnum.from(nthDayType.toString()).getCode().toLowerCase(java.util.Locale.ROOT));
+························repeatsOnNthDayOfMonthParamName,
+························NthDayNameEnum.from(nthDayType.toString()).getCode().toLowerCase(java.util.Locale.ROOT));
············}
········}
····}
src/main/java/org/apache/fineract/useradministration/domain/AppUser.java
@@ -551,7 +551,8 @@
····}
····private·void·validateHasPermission(final·String·prefix,·final·String·resourceType)·{
-········final·String·authorizationMessage·=·"User·has·no·authority·to·"·+·prefix·+·"·"·+·resourceType.toLowerCase(java.util.Locale.ROOT)·+·"s";
+········final·String·authorizationMessage·=·"User·has·no·authority·to·"·+·prefix·+·"·"·+·resourceType.toLowerCase(java.util.Locale.ROOT)
+················+·"s";
········final·String·matchPermission·=·prefix·+·"_"·+·resourceType.toUpperCase(java.util.Locale.ROOT);
········if·(!hasNotPermissionForAnyOf("ALL_FUNCTIONS",·"ALL_FUNCTIONS_READ",·matchPermission))·{
Run './gradlew :fineract-core:spotlessApply' to fix these violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org./
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':fineract-provider:compileJava'.
> Compilation failed; see the compiler output below.
==============================================================================
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:135:
error: cannot find symbol
private CommandProcessingResult updateLoanTransactionNote(final
JsonCommand command) {
> Task :fineract-provider:compileJava FAILED
^
symbol: class JsonCommand
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:135:
error: cannot find symbol
private CommandProcessingResult updateLoanTransactionNote(final
JsonCommand command) {
^
symbol: class CommandProcessingResult
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:162:
error: cannot find symbol
private CommandProcessingResult updateSavingAccountNote(final
JsonCommand command) {
^
symbol: class JsonCommand
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:162:
error: cannot find symbol
private CommandProcessingResult updateSavingAccountNote(final
JsonCommand command) {
^
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:119:
error: cannot find symbol
final Loan loan =
this.loanRepository.findOneWithNotFoundDetection(resourceId);
^
symbol: class Loan
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:119:
error: cannot find symbol
final Loan loan =
this.loanRepository.findOneWithNotFoundDetection(resourceId);
^
symbol: variable resourceId
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:120:
error: cannot find symbol
final Note noteForUpdate = this.noteRepository.findByLoanAndId(loan,
noteId);
^
symbol: variable noteId
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:122:
error: cannot find symbol
throw new NoteNotFoundException(noteId, resourceId,
type.name().toLowerCase(java.util.Locale.ROOT));
^
symbol: variable noteId
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:122:
error: cannot find symbol
throw new NoteNotFoundException(noteId, resourceId,
type.name().toLowerCase(java.util.Locale.ROOT));
^
symbol: variable resourceId
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:125:
error: cannot find symbol
final Map<String, Object> changes = noteForUpdate.update(command);
^
symbol: class Map
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:125:
error: cannot find symbol
final Map<String, Object> changes = noteForUpdate.update(command);
^
symbol: variable command
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:131:
error: cannot find symbol
return new
CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(noteForUpdate.getId())
^
symbol: class CommandProcessingResultBuilder
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:131:
error: cannot find symbol
return new
CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(noteForUpdate.getId())
^
symbol: variable command
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:142:
error: cannot find symbol
final LoanTransaction loanTransaction =
this.loanTransactionRepository.findById(resourceId)
^
symbol: class LoanTransaction
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:144:
error: cannot find symbol
final Loan loan = loanTransaction.getLoan();
^
symbol: class Loan
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:152:
error: cannot find symbol
final Map<String, Object> changes = noteForUpdate.update(command);
^
symbol: class Map
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:158:
error: cannot find symbol
return new
CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(noteForUpdate.getId())
^
symbol: class CommandProcessingResultBuilder
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:166:
error: cannot find symbol
final SavingsAccount savingAccount =
this.savingsAccountRepository.findById(resourceId)
^
symbol: class SavingsAccount
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:173:
error: cannot find symbol
final Map<String, Object> changes = noteForUpdate.update(command);
^
symbol: class Map
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:178:
error: cannot find symbol
return new CommandProcessingResultBuilder() //
^
symbol: class CommandProcessingResultBuilder
location: class NoteWritePlatformServiceJpaRepositoryImpl
/home/runner/work/fineract/fineract/fineract-provider/src/main/java/org/apache/fineract/portfolio/note/service/NoteWritePlatformServiceJpaRepositoryImpl.java:238:
error: cannot find symbol
if (noteForUpdate == null) {
^
symbol: variable noteForUpdate
location: class NoteWritePlatformServiceJpaRepositoryImpl
--
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]