Skip to content

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>
@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.

4 participants