As evidenced in https://git.opendaylight.org/gerrit/#/c/75330/ , spotbugs does not understand nullable annotations correctly, reporting:
[INFO] --- spotbugs-maven-plugin:3.1.6:check (analyze-compile) @ util --- [INFO] BugInstance size is 1 [INFO] Error size is 0 [INFO] Total bugs: 1 [ERROR] Null passed for non-null parameter of com.google.common.util.concurrent.Futures.immediateFuture(Object) in org.opendaylight.yangtools.util.concurrent.FluentFutures.<static initializer for FluentFutures>() [org.opendaylight.yangtools.util.concurrent.FluentFutures] At FluentFutures.java:[line 36] NP_NONNULL_PARAM_VIOLATION
- relates to
-
ODLPARENT-164 Nullable detection should be enabled in SpotBugs
- Open