Minimize Visibility in Java

Does anyone know of an automatic approach to code refactoring to minimize the visibility of classes, as well as their properties and methods? I'm trying to clear an old API that has too many public getters and setters that conform to JavaBean standards. An Eclipse plugin would be perfect, but any tool that could help would be great.

+3
source share
2 answers

The idea of ​​IntelliJ can conduct a global analysis of the code and tell you about all kinds of excessive visibility. If there are any dynamic technologies, it also understands well that they are the customs of this method / class; but it is not perfect.

+5

Structure101 . .

+1

Source: https://habr.com/ru/post/1702921/


All Articles