Enforce noninstanciability with a private constructor 

es.uniovi.reflection.analyses.bloch.2.4


This rule detects classes with only static members but without a private constructor. These classes are designed to be static so, in order to prevent their instantiation, they must implement a private constructor.

Computational Reflection Research Group
01-05-2026 13:28
Bad Practice
Class Declaration