What does “Can be package local” mean? (IDEA Inspection)

前端 未结 5 1456
太阳男子
太阳男子 2020-12-14 14:08

I used IntelliJ for \"Inspect Code\", and one of its results is:

  Problem synopsis      Can be package local (at line 18(public class HeartBeat))

5条回答
  •  青春惊慌失措
    2020-12-14 14:52

    Coming from the Android app background, you also need to consider that sometimes those warnings are redundant. So for debug build classes, it can be package local but for release build it might be used outside of package.

    I have disabled it on my end and @ashario answer was quite helpful in finding how to do it.

提交回复
热议问题