InjectedConstructorAnnotations
Injected constructors cannot be optional nor have binding annotations

Severity
WARNING

The problem

The constructor is annotated with @Inject(optional=true), or it is annotated with @Inject and a binding annotation. This will cause a Guice runtime error.

For more information, see https://github.com/google/guice/wiki/InjectionPoints.

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("InjectedConstructorAnnotations") to the enclosing element.