Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.972 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 137 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DOMUtils.java |
2 | 4 | 163 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DOMUtils.java |
| |||||
/** * Adds nested text in a new child element. * * <p>This means * <pre>appendTextElement(<a>, "b", "c")</pre> * creates * <pre> * <a> * <b>c</b> * </a> * </pre> * </p> * * @param parent element that will receive the new element as child. * @param name of the child element. * @param content text content. * * @since Ant 1.6.3 */ public static void appendTextElement(Element parent, String name, String content) { Element e = createChildElement(parent, name); appendText(e, content); } |
| |||||
/** * Adds a nested CDATA section in a new child element. * * <p>This means * <pre>appendCDATAElement(<a>, "b", "c")</pre> * creates * <pre> * <a> * <b><![CDATA[c]]></b> * </a> * </pre> * </pre> * </p> * * @param parent element that will receive the new element as child. * @param name of the child element. * @param content text content. * * @since Ant 1.6.3 */ public static void appendCDATAElement(Element parent, String name, String content) { Element e = createChildElement(parent, name); appendCDATA(e, content); } |
| |||
/** * Adds a nested CDATA section in a new child element. * * <p>This means * <pre>appendCDATAElement(<a>, "b", "c")</pre> * creates * <pre> * <a> * <b><![CDATA[c]]></b> * </a> * </pre> * </pre> * </p> * * @param parent element that will receive the new element as child. * @param name of the child element. * @param content text content. * * @since Ant 1.6.3 */ /** * Adds nested text in a new child element. * * <p>This means * <pre>appendTextElement(<a>, "b", "c")</pre> * creates * <pre> * <a> * <b>c</b> * </a> * </pre> * </p> * * @param parent element that will receive the new element as child. * @param name of the child element. * @param content text content. * * @since Ant 1.6.3 */ public static void [[#variable13133060]](Element parent, String name, String content) { Element e = createChildElement(parent, name); [[#variable13132fc0]](e, content); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#13133060]] | appendTextElement |
1 | 2 | [[#13133060]] | appendCDATAElement |
2 | 1 | [[#13132fc0]] | appendText |
2 | 2 | [[#13132fc0]] | appendCDATA |