Non-abstract classes and enums with non-static
, private
members should explicitly initialize those members, either in a
constructor or with a default value.
class A { // Noncompliant private int field; }
class A { private int field; A(int field) { this.field = field; } }
* Class implementing a Builder Pattern (name ending with "Builder").
* Java EE class annotated with:
* Class and field annotated with:
* Field annotated with: