Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.971 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 516 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java |
2 | 10 | 528 | 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]); } |
| |||||
{ 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]); } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#fe28a00]] | FileList |
1 | 2 | [[#fe28a00]] | FileSet |
2 | 1 | [[#fe289c0]] | setFiles |
2 | 2 | [[#fe289c0]] | setIncludes |
3 | 1 | [[#fe28760]] | addFilelist |
3 | 2 | [[#fe28760]] | addFileset |