RatReportTask.java 文件源码

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

项目:incubator-netbeans 作者:
private void doPopulateApproved(Map<String, ModuleInfo> moduleRATInfo, Element rootElement, XPath path) throws XPathExpressionException {
    NodeList evaluate = (NodeList) path.evaluate("descendant::resource[license-approval/@name=\"true\"]", rootElement, XPathConstants.NODESET);
    for (int i = 0; i < evaluate.getLength(); i++) {
        String resources = relativize(evaluate.item(i).getAttributes().getNamedItem("name").getTextContent());
        String moduleName = getModuleName(resources);
        if (!moduleRATInfo.containsKey(moduleName)) {
            moduleRATInfo.get(NOT_CLUSTER).addApproved(resources);
        } else {
            moduleRATInfo.get(moduleName).addApproved(resources);
        }

    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号