
org.sonar.l10n.pmd.rules.pmd.UseCollectionIsEmpty.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-pmd-plugin Show documentation
Show all versions of sonar-pmd-plugin Show documentation
Sonar-PMD is a plugin that provides coding rules from PMD.
The isEmpty() method on java.util.Collection is provided to see if a collection has any elements. Comparing the value of size() to 0 merely duplicates existing behavior.
This rule is deprecated, use {rule:java:S1155} instead.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy