PublicConstructorForAbstractClass
Constructors of an abstract class can be declared protected as there is never a need for them to be public

Severity
SUGGESTION

The problem

Abstract classes’ constructors are only ever called by subclasses, never directly by another class. Therefore they never need public constructors: protected is accessible enough.

Suppression

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