Skip to content

AOM-184: Replace deprecated Boolean constructor in PatientFormController - #258

Open
aadvik93 wants to merge 3 commits into
openmrs:masterfrom
aadvik93:AOM-184
Open

AOM-184: Replace deprecated Boolean constructor in PatientFormController#258
aadvik93 wants to merge 3 commits into
openmrs:masterfrom
aadvik93:AOM-184

Conversation

@aadvik93

Copy link
Copy Markdown

Description

This PR replaces the deprecated new Boolean(String) constructor in PatientFormController with Boolean.parseBoolean(String).

The deprecated constructor is marked for removal in newer Java versions and may lead to unnecessary object creation.

Changes

  • Replaced:
    • new Boolean(idPrefStatus[i])
  • With:
    • Boolean.parseBoolean(idPrefStatus[i])

Impact

  • No functional changes
  • Improves code quality and compatibility with modern Java versions

Testing

  • Built successfully using:
    mvn clean install -DskipTests

Ticket

https://openmrs.atlassian.net/browse/AOM-184

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant