boolean isAccessible(final Member m) {
final Class<?> declaring = m.getDeclaringClass();
// (declaring == clazz) is just an optimization - we're calling this only from code that operates on a
// non-restricted class, so if the declaring class is identical to the class being inspected, then forego
// a potentially expensive restricted-package check.
return declaring == clazz || !CheckRestrictedPackage.isRestrictedClass(declaring);
}
FacetIntrospector.java 文件源码
java
阅读 46
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录