[
https://issues.apache.org/jira/browse/FINERACT-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Abhishek Chaudhary resolved FINERACT-2663.
------------------------------------------
Resolution: Fixed
> Fix compiler deprecation warnings in core, security, provider, investor
> modules
> -------------------------------------------------------------------------------
>
> Key: FINERACT-2663
> URL: https://issues.apache.org/jira/browse/FINERACT-2663
> Project: Apache Fineract
> Issue Type: Improvement
> Reporter: Abhishek Chaudhary
> Priority: Minor
> Labels: maintainability
>
> Part of the ongoing effort to reduce compiler warnings (see FINERACT-959,
> "gradually enable -Xlint:all" in build.gradle).
> This change resolves deprecation warnings in the following files:
> - fineract-core: JavaType.java — replace deprecated new java.util.Date(String)
> with java.sql.Date.valueOf(String), consistent with the adjacent
> Time.valueOf / Timestamp.valueOf cases.
> - fineract-security: OidcLogoutSuccessHandler.java — replace deprecated
> UriComponentsBuilder.fromHttpUrl(String) with fromUriString(String).
> - fineract-provider: CustomAuditingHandler.java — add missing @Deprecated
> annotation to a constructor whose Javadoc already declares @deprecated
> (resolves a [dep-ann] warning).
> - fineract-investor (test): ExternalAssetOwnersWriteServiceTest.java — replace
> deprecated static RandomStringUtils.randomAlphanumeric/randomNumeric calls
> with the RandomStringUtils.secure().nextAlphanumeric/nextNumeric form
> already
> used elsewhere in the codebase.
> No behavior change. All affected modules compile successfully with the
> warnings removed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)