Skip to content

Use single-arg WordUtils.initials in PhEyeFilterStrategy#322

Open
jzonthemtn wants to merge 1 commit into
mainfrom
cleanup-pheye-initials-vararg
Open

Use single-arg WordUtils.initials in PhEyeFilterStrategy#322
jzonthemtn wants to merge 1 commit into
mainfrom
cleanup-pheye-initials-vararg

Conversation

@jzonthemtn

Copy link
Copy Markdown
Member

Small cleanup. PhEyeFilterStrategy called WordUtils.initials(token, null), passing null as the last argument to the initials(String, char...) varargs method. SonarCloud flags this pattern (java:S5669) as ambiguous.

The single-argument overload WordUtils.initials(String) splits on whitespace, which is identical behavior to passing null, so this switches to it. No behavior change.

This is the pre-existing occurrence of the same pattern fixed on the new ABBREVIATE code in #321; splitting it out to keep that PR scoped.

@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

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.

1 participant