org.sonar.l10n.java.rules.squid.S2447.html Maven / Gradle / Ivy
The newest version!
While null
is technically a valid Boolean
value, that fact, and the distinction between Boolean
and boolean
is easy to forget. So returning null
from a Boolean
method is likely to cause problems with callers' code.
Noncompliant Code Example
public Boolean isUsable() {
// ...
return null; // Noncompliant
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy