Intellij IDEA取消access can be private提示

步骤:

File -> Settings -> Editor -> Inspections -> 列表选择Java -> Declaration redundancy -> Declaration access can be weaker后面的勾去掉,Apply,OK。


顺便把IDEA默认的设置也改了:

File -> Other Settings -> Default Settings -> Editor -> Inspections -> 列表选择Java -> Declaration redundancy -> Declaration access can be weaker后面的勾去掉,Apply,OK。



版权声明:本文为bu2_int原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。