Skip to content

Fix issue 651 - additional changes AvoidMultipleConcatStatements#691

Open
stokpop wants to merge 5 commits intopmd7from
pmd7-issue-651
Open

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

Conversation

@stokpop
Copy link
Copy Markdown
Collaborator

@stokpop stokpop commented Feb 6, 2026

  • 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
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 6, 2026

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

jborgers commented Feb 6, 2026

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

Copy link
Copy Markdown
Owner

@jborgers jborgers left a comment

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