Skip to content

HDDS-14923. Enable UselessStringValueOf, UseStringBufferForStringAppends in PMD#10007

Draft
ptlrs wants to merge 2 commits intoapache:masterfrom
ptlrs:HDDS-14923-UseStringBufferForStringAppends
Draft

HDDS-14923. Enable UselessStringValueOf, UseStringBufferForStringAppends in PMD#10007
ptlrs wants to merge 2 commits intoapache:masterfrom
ptlrs:HDDS-14923-UseStringBufferForStringAppends

Conversation

@ptlrs
Copy link
Copy Markdown
Contributor

@ptlrs ptlrs commented Mar 30, 2026

What changes were proposed in this pull request?

This PR enables new PMD rules:

  1. UselessStringValueOf No need to call String.valueOf to append to a string where the type can be inferred
  2. UseStringBufferForStringAppends Use StringBuffer for concatenating strings

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14923

How was this patch tested?

CI: https://github.com/ptlrs/ozone/actions/runs/23722077147

@adoroszlai adoroszlai added the code-cleanup Changes that aim to make code better, without changing functionality. label Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-cleanup Changes that aim to make code better, without changing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants