Skip to content

Conversation

@SethSmucker
Copy link
Collaborator

Summary

  • Replace Charset.forName("UTF-8") with StandardCharsets.UTF_8 across 15 files
  • StandardCharsets.UTF_8 is more efficient (no lookup overhead) and safer (no runtime exception)

Files Changed

  • core/map-reduce/.../BulkResultsFileOutputMapper.java
  • core/metrics-reporter/.../StatsDClient.java
  • core/utils/accumulo-utils/.../ColumnVisibilityHelper.java
  • core/utils/type-utils/.../OptionallyEncodedString.java
  • core/utils/type-utils/.../TypedValue.java
  • microservices/.../ReferencedValue.java
  • microservices/.../QueryMetricHandlerProperties.java
  • microservices/.../ShardTableQueryMetricHandler.java
  • warehouse/query-core/.../QueryStatsDClient.java
  • warehouse/query-core/.../EventQueryTransformer.java
  • warehouse/query-core/src/test/.../CreateUidsIteratorTest.java
  • warehouse/query-core/src/test/.../RemoteEdgeQueryLogicHttpTest.java
  • warehouse/query-core/src/test/.../RemoteQueryServiceTestUtil.java
  • web-services/client/.../AbstractHtmlProviderMessageBodyWriter.java
  • web-services/security/src/test/.../RemoteUserOperationsImplHttpTest.java

Fixes #3313
Part of #2443

🤖 Generated with Claude Code

StandardCharsets.UTF_8 is available since Java 7 and is more efficient
than Charset.forName("UTF-8") because it avoids the lookup overhead
and potential UnsupportedCharsetException.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@apmoriarty apmoriarty added this pull request to the merge queue Jan 9, 2026
Merged via the queue into integration with commit 17dcaa7 Jan 9, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Charset.forName("UTF-8") with StandardCharsets.UTF_8

4 participants