Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.976 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 37 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/XMLFragmentTest.java |
2 | 9 | 48 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/XMLFragmentTest.java |
| |||||
XMLFragment x = (XMLFragment) getProject().getReference("nested-text"); assertNotNull(x); Node n = x.getFragment(); assertTrue("No attributes", !n.hasAttributes()); NodeList nl = n.getChildNodes(); assertEquals(1, nl.getLength()); assertEquals(Node.TEXT_NODE, nl.item(0).getNodeType()); |
| |||||
XMLFragment x = (XMLFragment) getProject().getReference("with-children"); assertNotNull(x); Node n = x.getFragment(); assertTrue("No attributes", !n.hasAttributes()); NodeList nl = n.getChildNodes(); assertEquals(3, nl.getLength()); assertEquals(Node.ELEMENT_NODE, nl.item(0).getNodeType()); |
| |||
XMLFragment x = (XMLFragment) getProject().getReference( [[#variablefe2f0c0]]); assertNotNull(x); Node n = x.getFragment(); assertTrue("No attributes", !n.hasAttributes()); NodeList nl = n.getChildNodes(); assertEquals( [[#variablefe2f000]], nl.getLength()); assertEquals(Node. [[#variablefe2c860]], nl.item(0).getNodeType()); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#fe2f0c0]] | "nested-text" |
1 | 2 | [[#fe2f0c0]] | "with-children" |
2 | 1 | [[#fe2f000]] | 1 |
2 | 2 | [[#fe2f000]] | 3 |
3 | 1 | [[#fe2c860]] | TEXT_NODE |
3 | 2 | [[#fe2c860]] | ELEMENT_NODE |