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

Refactor string constants. #3766

Closed

Conversation

JunggiKim
Copy link

@JunggiKim JunggiKim commented Feb 9, 2025

Description

Refactored string literals to constants in NamedQuery class to improve code maintainability and reduce duplication.

Changes

  • Extracted commonly used string literals ("NativeQuery", "Query") to static final constants
  • Updated all occurrences to use the new constants
  • No functional changes or behavior modifications

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 9, 2025
Signed-off-by: kimjg <k42ke@naver.com>
@JunggiKim JunggiKim force-pushed the Refactor-string-constants branch from edc58d2 to a3c49c0 Compare February 10, 2025 01:19
@mp911de mp911de added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 10, 2025
@mp911de
Copy link
Member

mp911de commented Feb 10, 2025

Thanks for reaching out. We do want to keep that code as-is. Introducing indirections for a few constants causes more mental overhead than it attempts to fix.

@mp911de mp911de closed this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants