Interestingly, it does not matter if the method is a public or protected package in a class protected by the package.
class Example { public void test() {} }
instead
class Example { void test() {} }
I assume that maximum visibility is set by the class. And the method can only reduce visibility, and increasing visibility has no effect.
But this is valid syntax, so maybe I controlled something?
source share