Skip to content

Sonar: Replace if-else chains with switch expressions for better readability#7007

Open
leehaut wants to merge 1 commit intoapache:mainfrom
leehaut:hotfix/lance-common-61
Open

Sonar: Replace if-else chains with switch expressions for better readability#7007
leehaut wants to merge 1 commit intoapache:mainfrom
leehaut:hotfix/lance-common-61

Conversation

@leehaut
Copy link
Copy Markdown
Contributor

@leehaut leehaut commented Apr 16, 2026

  • Replaced if-else if chains with switch expressions
  • StringEscapeUtils in commons-lang3 is deprecated
  • Replace Math.min + Math.max with Math.clamp
  • Preserved existing behavior without any functional changes

…eadability

Signed-off-by: lance <leehaut@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant