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。


你可能感兴趣的:(玄学)