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

Thomas Zuberbühler :

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 settings to find a way to disable this message but without any findings. Any idea how to disable the message?

mboss :

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=423009&siteId=1