Uploaded image for project: 'odlparent'
  1. odlparent
  2. ODLPARENT-161

SpotBugs flags errors due to Guava nullable annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • 4.0.0
    • 4.0.0
    • General
    • None

      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
      

            skitt Stephen Kitt
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: