File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java | |||
Method name: void testgenericantfile()
|
Method name: void testantfile()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | File dir1 = project.resolveFile(".");↵ | 1 | File dir1 = project.resolveFile(".");↵ | |
2 | File dir2 = project.resolveFile("subant/subant-test1");↵ | 2 | // basedir of subant/subant-test1/subant.xml is ..↵ | |
3 | // therefore we expect here the subant/subant-test1 subdirectory↵ | |||
4 | File dir2 = project.resolveFile("subant/subant-test1");↵ | |||
5 | // basedir of subant/subant-test2/subant.xml is ..↵ | |||
6 | // therefore we expect here the subant subdirectory↵ | |||
3 | File dir3 = project.resolveFile("subant/subant-test2");↵ | 7 | File dir3 = project.resolveFile("subant");↵ | |
4 | testBaseDirs("testgenericantfile",↵ | 8 | testBaseDirs("testantfile",↵ | |
5 | new String[] { dir1.getAbsolutePath(),↵ | 9 | new String[] { dir1.getAbsolutePath(),↵ | |
6 | dir2.getAbsolutePath(),↵ | 10 | dir2.getAbsolutePath(),↵ | |
7 | dir3.getAbsolutePath()↵ | 11 | dir3.getAbsolutePath()↵ | |
8 | }); | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | File dir1 = project.resolveFile("."); | 1 | File dir1 = project.resolveFile("."); | |||||||||||
2 | File dir2 = project.resolveFile("subant/subant-test1"); | 2 | File dir2 = project.resolveFile("subant/subant-test1"); | |||||||||||
3 | File dir3 = project.resolveFile("subant/subant-test2"); |
| 3 | File dir3 = project.resolveFile("subant"); | ||||||||||
4 | testBaseDirs("testgenericantfile", new String[] {dir1.getAbsolutePath(), dir2.getAbsolutePath(), dir3.getAbsolutePath()}); |
| 4 | testBaseDirs("testantfile", new String[] {dir1.getAbsolutePath(), dir2.getAbsolutePath(), dir3.getAbsolutePath()}); |
Row | Violation |
---|