Skip to content

Fix deprecated StringUtils and Charsets usages - #9

Merged
arakelian merged 1 commit into
mainfrom
arakelian/fix-eclipse-warnings
Feb 24, 2026
Merged

arakelian merged 1 commit into
mainfrom
arakelian/fix-eclipse-warnings

Conversation

@arakelian

Copy link
Copy Markdown
Owner

Summary

Replace deprecated Apache Commons Lang StringUtils methods with standard Java alternatives and replace deprecated Guava Charsets with java.nio.charset.StandardCharsets.

Changes

  • StringUtils.equals()String.equals() or contentEquals()
  • StringUtils.startsWith()String.startsWith()
  • StringUtils.defaultString()Objects.toString()
  • Charsets.UTF_8StandardCharsets.UTF_8

Fixes Eclipse compiler warnings and removes reliance on deprecated APIs.

🤖 Generated with Claude Code

Replace deprecated Apache Commons Lang StringUtils methods with standard Java alternatives:
- StringUtils.equals() → String.equals() or contentEquals()
- StringUtils.startsWith() → String.startsWith()
- StringUtils.defaultString() → Objects.toString()

Replace deprecated Guava Charsets.UTF_8 with java.nio.charset.StandardCharsets.UTF_8.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@arakelian
arakelian merged commit ed96c9a into main Feb 24, 2026
1 check passed
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.

1 participant