How to disable “Access can be package-private” message in IntelliJ?

前端 未结 5 575
梦如初夏
梦如初夏 2021-01-31 13:20

Developing an API, the warning message \"Access can be package-package\" in Java classes can be really annoying.

I\'ve already spent some time going through the setting

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 13:51

    Go to Settings → Editor → Inspections then Java → Declaration redundancy → Declaration access can be weaker rule.
    Here you can either disable it at all or select the suggestion options on the right pane:

提交回复
热议问题