CloneSet153


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.971block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110516
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java
210528
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
516
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java

{
  Path p = new Path(project);
  FileList f = new FileList();
  f.setProject(project);
  f.setDir(project.resolveFile("."));
  f.setFiles("build.xml");
  p.addFilelist(f);
  String[] l = p.list();
  assertEquals(1, l.length);
  assertEquals(project.resolveFile("build.xml").getAbsolutePath(), l[0]);
}


First
Previous
Clone Instance
2
Line Count
10
Source Line
528
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java

{
  Path p = new Path(project);
  FileSet f = new FileSet();
  f.setProject(project);
  f.setDir(project.resolveFile("."));
  f.setIncludes("build.xml");
  p.addFileset(f);
  String[] l = p.list();
  assertEquals(1, l.length);
  assertEquals(project.resolveFile("build.xml").getAbsolutePath(), l[0]);
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  Path p = new Path(project);
   [[#variablefe28a00]] f = new [[#variablefe28a00]]();
  f.setProject(project);
  f.setDir(project.resolveFile("."));
  f. [[#variablefe289c0]]("build.xml");
  p. [[#variablefe28760]](f);
  String[] l = p.list();
  assertEquals(1, l.length);
  assertEquals(project.resolveFile("build.xml").getAbsolutePath(), l[0]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe28a00]]
FileList 
12[[#fe28a00]]
FileSet 
21[[#fe289c0]]
setFiles 
22[[#fe289c0]]
setIncludes 
31[[#fe28760]]
addFilelist 
32[[#fe28760]]
addFileset