FINERACT-2437: Decrease compilation warnings#5721
Conversation
Aman-Mittal
left a comment
There was a problem hiding this comment.
Seems ok, While i also support Krishna's suggestion too.
@adamsaghy i think it is ready for review
99d190b to
7d19ff3
Compare
|
@rhopman please chek failing case Failed scenarios: 32 Scenarios (1 failed, 31 passed) org.opentest4j.AssertionFailedError:
[Incubating] Problems report is available at: file:///home/runner/work/fineract/fineract/build/reports/problems/problems-report.html FAILURE: Build failed with an exception.
BUILD FAILED in 4m 54s You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. |
41194cc to
a1cd330
Compare
Replace deprecated method calls with their modern equivalents across several modules:
ObjectUtils.defaultIfNull(deprecated in Commons Lang 3.15) →Objects.requireNonNullElsein 8 files across fineract-charge, fineract-core, fineract-loan, fineract-provider, and fineract-progressive-loanRandomStringUtils.randomAlphabetic(static call on instance) →nextAlphabeticinDefaultContentPathRandomizerStopWatch.getStartTime(deprecated in Commons Lang 3.12) →getStartInstant().toEpochMilli()inPlatformRequestLog@Schema(required = true)(deprecated in Swagger 2.2) →@Schema(requiredMode = Schema.RequiredMode.REQUIRED)inAuthenticationApiResourceSwaggerPaymentTypeRepositoryWrapper(marked@Deprecated(forRemoval = true)) → replaced with directPaymentTypeRepositoryusage inPaymentDetailAssembler,PaymentDetailWritePlatformServiceJpaRepositoryImpl, andPaymentDetailConfigurationNo behavioural changes.
Checklist