After an update of Android Studio I get warnings on fields like:
public int ex1 = 0; int ex2 = 0;
or methods or nested classes when they are used only in one class or in the package:
"Access can be private" or "Access can be package-only"
This is can be, and I don't want these warnings but I cannot find how I can deactivate them. Any ideas?
You can also put this annotation on top of your class:
@SuppressWarnings("WeakerAccess")
In Android Studio 2.2.1 open Settings-> Editor -> Inspections. Now go to Java->Declaration redundancy->Declaration Access Can be Weaker and uncheck this option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With