in modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/BlueprintingVisitor.java [385:399]
boolean shouldImport(final Pair<Type, Method> methodKey) {
// call anything called within a class hierarchy:
final Type called = methodKey.getLeft();
// "I prefer the short cut":
if (called.equals(owner)) {
return true;
}
try {
final Class<?> inner = load(called);
final Class<?> outer = load(owner);
return inner.isAssignableFrom(outer);
} catch (final ClassNotFoundException e) {
return false;
}
}