SAXAnnotationAdapter.java 文件源码

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

项目:DirectLeaks-AntiReleak-Remover 作者:
private void addValueElement(final String element, final String name,
        final String desc, final String value) {
    AttributesImpl att = new AttributesImpl();
    if (name != null) {
        att.addAttribute("", "name", "name", "", name);
    }
    if (desc != null) {
        att.addAttribute("", "desc", "desc", "", desc);
    }
    if (value != null) {
        att.addAttribute("", "value", "value", "",
                SAXClassAdapter.encode(value));
    }

    sa.addElement(element, att);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号