RemoteObjectRegistrationImpl.java 文件源码

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

项目:NetCom2 作者:
private boolean ignoreThrowable(Exception exception, AnnotatedElement... annotatedElements) {
    if(exception != null) {
        for(AnnotatedElement element : annotatedElements) {
            if(element == null) {
                continue;
            }
            IgnoreRemoteExceptions annotation = element.getAnnotation(IgnoreRemoteExceptions.class);
            if(annotation != null) {
                return !Arrays.asList(annotation.exceptTypes()).contains(exception.getClass());
            }
        }
    }
    return false;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号