PrivateConstructorForUtilityClassUtility classes (only static members) are not designed to be instantiated and should be made noninstantiable with a default constructor.

Severity

SUGGESTION

Has Fix?

REQUIRES_HUMAN_ATTENTION

The problem

Classes that only include static members have no behavior particular to any
given instance, so instantiating them is nonsense. To prevent users from
mistakenly creating instances, the class should include a private constructor.
See Effective Java, Second Edition - Item 4.

Suppression

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