You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
2.3.1 is latest
What did you do?
-Xep:ParameterNotNullable:WARN
importorg.apache.commons.lang3.StringUtils;
importjavax.annotation.Nullable;
publicclassMyClass {
@NullablepublicCharacterdoTheThing(@NullablefinalStringstr) {
Characterresult = null;
if (StringUtils.isNotEmpty(str)) {
result = str.charAt(0);
}
returnresult;
}
}
What did you expect to see?
No warning.
What did you see instead?
[ParameterNotNullable] Nullable parameter not checked for null.
It would be useful if ParameterNotNullable could detect the null checking that happens inside this call to StringUtils#isNotEmpty and other similar method inside commons-lang, or maybe even other libraries.
The text was updated successfully, but these errors were encountered:
What version of Error Prone are you using?
2.3.1
Does this issue reproduce with the latest release?
2.3.1 is latest
What did you do?
What did you expect to see?
No warning.
What did you see instead?
[ParameterNotNullable] Nullable parameter not checked for null.
It would be useful if ParameterNotNullable could detect the null checking that happens inside this call to StringUtils#isNotEmpty and other similar method inside commons-lang, or maybe even other libraries.
The text was updated successfully, but these errors were encountered: