fix in 'protected' visibility check
This commit is contained in:
@@ -60,7 +60,7 @@ public class Visibilities {
|
||||
ClassDescriptor classDescriptor = DescriptorUtils.getParentOfType(what, ClassDescriptor.class);
|
||||
if (classDescriptor == null) return false;
|
||||
|
||||
ClassDescriptor fromClass = DescriptorUtils.getParentOfType(from, ClassDescriptor.class);
|
||||
ClassDescriptor fromClass = DescriptorUtils.getParentOfType(from, ClassDescriptor.class, false);
|
||||
if (fromClass == null) return false;
|
||||
if (DescriptorUtils.isSubclass(fromClass, classDescriptor)) {
|
||||
return true;
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
package foo;
|
||||
|
||||
interface Intf {
|
||||
public interface Intf {
|
||||
String getFooBar();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,6 @@
|
||||
|
||||
package foo;
|
||||
|
||||
interface Intf {
|
||||
public interface Intf {
|
||||
void fooBar(int i, String[] s, Object foo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user