Skip to content

Conversation

@ritesh19331
Copy link

Summary

Improved readability, added null safety, and enhanced assertion messages in SchemaOnlyTuner.

Changes

  • Added null checks and used Objects.requireNonNull for document safety.
  • Ensured null-safe detachment in detachChangeSet().
  • Simplified XPath expressions for consistency.
  • Replaced string comparisons with equals() for null safety.
  • Enhanced assertion messages and Javadocs.

Notes

No functional or behavioral changes introduced. This is a pure refactoring improvement.

Issue

No ticket required (minor internal refactoring).

…out changing functionality

- Added null checks and used Objects.requireNonNull to ensure document safety.
- Ensured null-safe detachment of Liquibase tables in detachChangeSet().
- Simplified XPath expressions and improved code consistency.
- Replaced string comparisons with null-safe equals().
- Enhanced assertion messages for clarity during schema verification.
- Updated Javadocs for readability and structure.

No changes in functionality or behavior; purely refactoring and style improvements.
@gracepotma
Copy link
Contributor

Thank you @ritesh19331 for this. Did you get a chance to review our PR tips page: https://openmrs.atlassian.net/wiki/spaces/docs/pages/25477199/Pull+Request+Tips

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.

2 participants