CloneSet52


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.987statement_sequence[12]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113254
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
213277
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java
Next
Last
Clone Instance
1
Line Count
13
Source Line
254
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java

Enumeration e = manifest.getSectionNames();
String section1 = (String) e.nextElement();
String section2 = (String) e.nextElement();
assertEquals("First section name unexpected", "Test1", section1);
assertEquals("Second section name unexpected", "Test2", section2);
Manifest.Section section = manifest.getSection("Test1");
e = section.getAttributeKeys();
String attr1Key = (String) e.nextElement();
String attr2Key = (String) e.nextElement();
String attr1 = section.getAttribute(attr1Key).getName();
String attr2 = section.getAttribute(attr2Key).getName();
assertEquals("First attribute name unexpected", "TestAttr1", attr1);


First
Previous
Clone Instance
2
Line Count
13
Source Line
277
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/ManifestTest.java

Enumeration e = manifest.getSectionNames();
String section1 = (String) e.nextElement();
String section2 = (String) e.nextElement();
assertEquals("First section name unexpected", "Test2", section1);
assertEquals("Second section name unexpected", "Test1", section2);
Manifest.Section section = manifest.getSection("Test1");
e = section.getAttributeKeys();
String attr1Key = (String) e.nextElement();
String attr2Key = (String) e.nextElement();
String attr1 = section.getAttribute(attr1Key).getName();
String attr2 = section.getAttribute(attr2Key).getName();
assertEquals("First attribute name unexpected", "TestAttr2", attr1);


Clone AbstractionParameter Count: 3Parameter Bindings

Enumeration e = manifest.getSectionNames();
String section1 = (String) e.nextElement();
String section2 = (String) e.nextElement();
assertEquals("First section name unexpected",  [[#variablefdd3e60]], section1);
assertEquals("Second section name unexpected",  [[#variablefdabc00]], section2);
Manifest.Section section = manifest.getSection("Test1");
e = section.getAttributeKeys();
String attr1Key = (String) e.nextElement();
String attr2Key = (String) e.nextElement();
String attr1 = section.getAttribute(attr1Key).getName();
String attr2 = section.getAttribute(attr2Key).getName();
assertEquals("First attribute name unexpected",  [[#variablefda1960]], attr1);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdd3e60]]
"Test1" 
12[[#fdd3e60]]
"Test2" 
21[[#fdabc00]]
"Test2" 
22[[#fdabc00]]
"Test1" 
31[[#fda1960]]
"TestAttr1" 
32[[#fda1960]]
"TestAttr2"