Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 3 | 0.972 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 46 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java |
2 | 13 | 59 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java |
| |||||
// target must be specified public void testgenericantfile() { File dir1 = project.resolveFile("."); File dir2 = project.resolveFile("subant/subant-test1"); File dir3 = project.resolveFile("subant/subant-test2"); testBaseDirs("testgenericantfile", new String[] { dir1.getAbsolutePath(), dir2.getAbsolutePath(), dir3.getAbsolutePath() } ); } |
| |||||
public void testantfile() { File dir1 = project.resolveFile("."); // basedir of subant/subant-test1/subant.xml is .. // therefore we expect here the subant/subant-test1 subdirectory File dir2 = project.resolveFile("subant/subant-test1"); // basedir of subant/subant-test2/subant.xml is .. // therefore we expect here the subant subdirectory File dir3 = project.resolveFile("subant"); testBaseDirs("testantfile", new String[] { dir1.getAbsolutePath(), dir2.getAbsolutePath(), dir3.getAbsolutePath() } ); } |
| |||
// target must be specified public void [[#variable131a3ce0]]() { File dir1 = project.resolveFile("."); // basedir of subant/subant-test1/subant.xml is .. // therefore we expect here the subant/subant-test1 subdirectory File dir2 = project.resolveFile("subant/subant-test1"); // basedir of subant/subant-test2/subant.xml is .. // therefore we expect here the subant subdirectory File dir3 = project.resolveFile( [[#variable131a3c80]]); testBaseDirs( [[#variable131a3c00]], new String[] { dir1.getAbsolutePath(), dir2.getAbsolutePath(), dir3.getAbsolutePath() } ); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#131a3ce0]] | testgenericantfile |
1 | 2 | [[#131a3ce0]] | testantfile |
2 | 1 | [[#131a3c80]] | "subant/subant-test2" |
2 | 2 | [[#131a3c80]] | "subant" |
3 | 1 | [[#131a3c00]] | "testgenericantfile" |
3 | 2 | [[#131a3c00]] | "testantfile" |