Skip to content

缺少函数返回一个类的情况的处理 #4

@lavon321

Description

@lavon321

函数返回一个类的情况没有处理:

 private static Transformer dnst()
        throws TransformerException
    {
        TransformerFactory factory = TransformerFactory.newInstance();
        javax.xml.transform.Source xslt = new StreamSource(cpcns/util/XMLVisitor.getResourceAsStream("DNS.xslt"));
        Transformer transformer = factory.newTransformer(xslt);
        return transformer;
    }

    public static Element deleteNamespace(Element e)
        throws TransformerException
    {
        return JOOX.$(e).transform(dnst()).get(0);
    }

    public static void deleteNamespace(File src, File out)
        throws TransformerException
    {
        dnst().transform(new StreamSource(src), new StreamResult(out));
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions