Skip to content

Fix issue 651 - additional changes AvoidMultipleConcatStatements#691

Open
stokpop wants to merge 5 commits into
pmd7from
pmd7-issue-651
Open

Fix issue 651 - additional changes AvoidMultipleConcatStatements#691
stokpop wants to merge 5 commits into
pmd7from
pmd7-issue-651

Conversation

@stokpop

@stokpop stokpop commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator
  • merge

  • found hashCode false positive

  • now exclude on hashCode fun, but that if obvious String concat is inside hashCode it is not found: added INACTIVE test for this, to be fixed when needed

@stokpop stokpop requested a review from jborgers February 6, 2026 11:21
@sonarqubecloud

sonarqubecloud Bot commented Feb 6, 2026

Copy link
Copy Markdown

@stokpop stokpop changed the title Pmd7 issue 651 - additional changes AvoidMultipleConcatStatements Fix issue 651 - additional changes AvoidMultipleConcatStatements Feb 6, 2026
@jborgers

jborgers commented Feb 6, 2026

Copy link
Copy Markdown
Owner

Seems like a hack. How about this pattern in non-hashCode fun's?

@jborgers jborgers left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Is this only for hashCode? Other methods working with Int?

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.

2 participants