Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-1152 renaming variable in hashCode method in Medical.java file #1177

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

Dharmil4602
Copy link

@Dharmil4602 Dharmil4602 commented Nov 26, 2023

See OP-1152.

This pull request addresses code readability by applying the "Rename Variable" refactoring method to the hashCode method in Medical.java file. The primary change involves renaming the variable hash to hashValueMultiplier for improved clarity and self-documentation.

Changes Made:

  • Renamed variable c to hashValueMultiplier for better readability.
  • Updated comments and documentation to reflect the new variable name.

Rationale:

Descriptive variable names enhance the understandability of the codebase. The new name, hashValueMultiplier, more accurately conveys the purpose of the variable in the context of the hashCode method. This refactoring aims to make the code more maintainable and accessible to developers.

Testing:

No functional changes have been made to the logic of the hashCode method. Existing unit tests for the class remain valid and continue to pass.

Link Before:

Link after modification: Dharmil4602@4aff137

Issue ID: https://openhospital.atlassian.net/browse/OP-1152

@Dharmil4602 Dharmil4602 changed the title Op 1152 renaming variable OP 1152 renaming variable in hashCode method in Medical.java file Nov 26, 2023


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you including files that exist in another PR? (see https://github.com/informatici/openhospital-core/pull/1175/files). And none of the changes requested made in that PR are included here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll resolve it from my side.

@mwithi mwithi changed the title OP 1152 renaming variable in hashCode method in Medical.java file OP-1152 renaming variable in hashCode method in Medical.java file Nov 27, 2023
@mwithi mwithi added the hold hold for next releases label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold hold for next releases
Projects
None yet
3 participants