JerseyResponseSupport.java 文件源码

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

项目:tinytypes 作者:
private static Set<HeaderDelegateProvider> stealAcquireRefToHeaderDelegateProviders() {
    try {
        final RuntimeDelegate instance = RuntimeDelegate.getInstance();
        final RuntimeDelegateImpl s = (RuntimeDelegateImpl) instance;
        final Field declaredField;
        declaredField = AbstractRuntimeDelegate.class.getDeclaredField("hps");
        declaredField.setAccessible(true);
        final Set<HeaderDelegateProvider> get = (Set<HeaderDelegateProvider>) declaredField.get(s);
        return get;
    } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {
        throw new RuntimeException(ex);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号