Skip to content

[Misc] Use Collection.isEmpty() instead of size() > 0 / size() == 0#380

Merged
manuelleduc merged 1 commit into
xwiki:masterfrom
manuelleduc:sonar-collection-isempty
Jul 9, 2026
Merged

[Misc] Use Collection.isEmpty() instead of size() > 0 / size() == 0#380
manuelleduc merged 1 commit into
xwiki:masterfrom
manuelleduc:sonar-collection-isempty

Conversation

@manuelleduc

Copy link
Copy Markdown
Contributor

Generalize over xwiki/xwiki-platform#5795 using the replace structurally feature of intellij

@vmassol vmassol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@manuelleduc manuelleduc changed the title [Misc] Use Collection.isEmpty() instead of size() > 0 / size() === 0 [Misc] Use Collection.isEmpty() instead of size() > 0 / size() == 0 Jul 9, 2026
@manuelleduc manuelleduc merged commit 39b9b8e into xwiki:master Jul 9, 2026
2 checks passed
@manuelleduc manuelleduc deleted the sonar-collection-isempty branch July 9, 2026 08:44
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