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

前端 未结 5 494
梦如初夏
梦如初夏 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:48

    The inspection rule is "Declaration access can be weaker" and there are two options which can be disabled "Suggest package-private visibility level..."

提交回复
热议问题