CloneSet182


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.976statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1737
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/XMLFragmentTest.java
2948
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/XMLFragmentTest.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
37
Source File
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());


First
Previous
Clone Instance
2
Line Count
9
Source Line
48
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/XMLFragmentTest.java

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());


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe2f0c0]]
"nested-text" 
12[[#fe2f0c0]]
"with-children" 
21[[#fe2f000]]
1 
22[[#fe2f000]]
3 
31[[#fe2c860]]
TEXT_NODE 
32[[#fe2c860]]
ELEMENT_NODE