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

[#4209] Improvement(server-common): Update charset handling to use StandardCharsets.UTF_8 #4219

Closed
wants to merge 10 commits into from

Conversation

devesh-2002
Copy link

What changes were proposed in this pull request?

Replaced Hardcoded "UTF-8" with StandardCharsets.UTF-8 in KerberosServerUtils.java

Why are the changes needed?

The changes were needed to ensure adherence to best code practices, specifically by replacing hardcoded charset strings with the use of StandardCharsets.UTF_8, promoting clarity, consistency, and robustness in charset handling.

Fix: #4209,

Does this PR introduce any user-facing change?

No

Please let me know, if any further changes are needed.

@yuqi1129
Copy link
Contributor

@devesh-2002
Thanks for your contribuitons, there are some formating issues, please run /gradlew :server-common:spotlessApply' to fix them.

@devesh-2002
Copy link
Author

@yuqi1129, Thank you for the suggestion. I have run the formatting command. Still, please let me know, if any changes are needed.

// }
// PrincipalName ::= SEQUENCE {
// name-string[1] SEQUENCE OF String
// name-string[1] SEQUENCE OF String
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes here and above are not necessary, it would be better not to change them.

@jerryshao jerryshao changed the title Improvement: Update charset handling to use StandardCharsets.UTF_8 [#4209] Improvement: Update charset handling to use StandardCharsets.UTF_8 Jul 31, 2024
@jerryshao jerryshao changed the title [#4209] Improvement: Update charset handling to use StandardCharsets.UTF_8 [#4209] Improvement(server-common): Update charset handling to use StandardCharsets.UTF_8 Jul 31, 2024
@jerryshao
Copy link
Contributor

@devesh-2002 there's some build issues, can you please fix it.

@devesh-2002 devesh-2002 closed this Aug 3, 2024
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.

[Improvement] In KerberosServerUtils.java replace hardcoded string
3 participants