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

Replace hardcoded value with StandardCharset #217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Pushkar-Mahajan4
Copy link

@Pushkar-Mahajan4 Pushkar-Mahajan4 commented Nov 15, 2024

  • Replaced hardcoded values like "UTF-8" with StandardCharsets.UTF_8 to follow best practices. This ensures better readability, avoids potential typos, and uses predefined constants for standard character sets.
  • Use lambda function for better readability
  • Log error msg in catch block

Let me know if this needs more work or any changes 😁

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