How to make Intellij Idea Java suggest alternative method scope?
Answered
Hi there,
First time posting, please let me know if something could be done better!
Yesterday a friend of mine looked over a random piece of code of mine and told me that I had orange warnings all over the place on my methods' scopes (for instance, I could've made something package-privated or the default one, while instead I used protected) - whereas on mine it doesn't say anything. I wondered whether the problem was caused by IntelliJ versions, but it turns out both of ours are the most recent one. So I went to Analyze - configure current file analysis - configure inspection, and saw all these options and lost my way there.
Can someone help me out by pointing me in the right direction? Thanks a lot!
Please sign in to leave a comment.
Check this inspection: Settings (Preferences on macOS) | Editor | Inspections | Java | Declaration redundancy | Declaration access can be weaker.