FacetIntrospector.java 文件源码

java
阅读 46 收藏 0 点赞 0 评论 0

项目:openjdk-jdk10 作者:
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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号