Skip to content

Javax annotation dependency @Nonnull should not rely on plugin dependencies #595

@binkley

Description

@binkley

Turning off the Spotbugs plugin in the Maven build breaks the javax annotations (@Nonnull).
The code should not depend on the plugins to compile.

  • When the Maven build runs, and SpotBugs is disabled, the build should still compile

Tech analysis

We are missing the javax.annotations dependency, and rely on the spotbugs-annotations dependency to provide them.
Add the dependency, and update the imports, and see if Nonnull got renamed (ie, NonNull, etc).
Otherwise, this is short work.

Further

Turn off all plugins, and check the code compiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions