mrkartik00 opened a new pull request, #4407: URL: https://github.com/apache/gravitino/pull/4407
### What changes were proposed in this pull request? Refactored the extractResponseBodyAsString method to use StandardCharsets.UTF_8 instead of the hardcoded "UTF-8". Updated import statements to ensure that all necessary classes and interfaces are included and correctly referenced. These changes aim to improve code readability and maintain consistency in handling character encodings. ### Why are the changes needed? Enhanced Readability: Using StandardCharsets.UTF_8 eliminates magic strings and improves code clarity, making it easier for developers to understand the encoding being used. Consistency: Updated import statements ensure that all required dependencies are correctly imported and organized, reducing the likelihood of compilation issues and improving code maintenance. ### Does this PR introduce _any_ user-facing change? No user-facing changes are introduced by this PR. The changes are internal refactors that improve code quality but do not affect any public APIs or user-facing features. ### How was this patch tested? Manual Testing: Verified the functionality of the extractResponseBodyAsString method with the updated encoding approach to ensure it processes HTTP responses correctly. Existing Tests: No new tests were added as the changes do not alter functionality, but the existing test suite was run to confirm that no issues were introduced. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
