A lot of the time, I start out with methods being public and then reducing them to the lowest levels needed after I finish, but that's kind of tedious. Is there a way to automatically change all the privacy modifiers (for both classes and methods) to the lowest ones possible all at once?
It is possible: Analyze | Run inspection by name, and enter Declaration access can be weaker name for the inspection. Then run the inspection for the project and fix all the occurrences in the project by one click in Inspection results tool window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With