Skip to content

Latest commit

 

History

History
executable file
·
24 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

executable file
·
24 lines (19 loc) · 1.12 KB

findbugs-guice

findbugs-guice is a detector for Findbugs, a popular static analysis tool, that detects errors in the use of Guice.

findbugs-guice detects:

  • scope annotations on interfaces (which Guice does not support)
  • installation of submodules via Module.configure() (which doesn't install @Provides methods) rather than Module.install()
  • static field injection (which is recommended against)
  • final field injection (which is recommended against and error-prone)
  • bindings to implementation classes with public visibility
  • bindings to implementation classes with public constructor visibility

How to install

Install findbugs-guice like any other Findbugs detector:

  1. Put the JAR in FINDBUGS_HOME/plugin.
  2. Test your installation against code which exhibits the issues that findbugs-guice detects.

How to build

mvn package