Is there a way to make the IntelliJ Idea inspections or checkstyle to give you a warning when a public method is used only in the class where it is defined?
I had the impression that this was possible a while ago, but in the latest weeks I notice that this is not the case (anymore).
In IntelliJ IDEA, it is one of the inspections. "Declaration access can be weaker".
In the Preferences dialog -> Editor -> Inspections -> Java -> Declaration redundancy -> Declaration access can be weaker.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.