File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecuteOn.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecuteOn.java | |||
Method name: void runExec(Execute)
|
Method name: void runExec(Execute)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (!FileDirBoth.DIR.equals(currentType)) {↵ | 1 | if (!FileDirBoth.FILE.equals(currentType)) {↵ | |
2 | String[] s = getFiles(base, ds);↵ | 2 | String[] s = getDirs(base, ds);↵ | |
3 | for (int j = 0; j < s.length; j++) {↵ | 3 | for (int j = 0; j < s.length; j++) {↵ | |
4 | totalFiles++;↵ | 4 | totalDirs++;↵ | |
5 | fileNames.addElement(s[j]);↵ | 5 | fileNames.addElement(s[j]);↵ | |
6 | baseDirs.addElement(base);↵ | 6 | baseDirs.addElement(base);↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
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.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 25 |
Number of mapped statements | 6 |
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) | 4.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16 | if (!FileDirBoth.DIR.equals(currentType)) |
| 22 | if (!FileDirBoth.FILE.equals(currentType)) | ||||||||||
17 | String[] s = getFiles(base, ds); |
| 23 | String[] s = getDirs(base, ds); | ||||||||||
18 | for (int j = 0; j < s.length; j++) | 24 | for (int j = 0; j < s.length; j++) | |||||||||||
19 | totalFiles++; |
| 25 | totalDirs++; | ||||||||||
20 | fileNames.addElement(s[j]); | 26 | fileNames.addElement(s[j]); | |||||||||||
21 | baseDirs.addElement(base); | 27 | baseDirs.addElement(base); |
Row | Violation |
---|