1. Guava's Function interface declares apply() takes a single @Nullable parameter.
2. I implement this interface but declare the parameter @Nonnull (essentially overriding the annotation)
3. The Findbugs warning message changes from "id must be nonnull but is marked as nullable" to "x0 must be nonnull but is marked as nullable" where "id" is the parameter found in my implementation and "x0" does not exist.
I believe this is a false-positive. We should be able to override @Nullable with @Nonnull without this lingering warning.
Log in to post a comment.