Minimize the accessibility of classes 

es.uniovi.reflection.analyses.bloch.4.13.1


This rule detects public classes that are only used inside its own package in order to change its visibility to "package-protected" so it cannot be visible for the client (**Scenario 1**). Moreover, this rule also detects public and package-protected classes that are only used inside one class in order to tranform the first class into a inner one inside the class where it is being used, changing its visibility to private (**Scenario 2**).

Computational Reflection Research Group
12-03-2025 17:14
Bad Practice
Class Declaration