for (int k = 0; k < mappedFiles.length; k++) {
mappedFiles[k] = new File(toDir, mappedFiles[k]).getAbsolutePath();
}
map.put(src.getAbsolutePath(), mappedFiles);
for (int i = 0; i < dirs.length; i++) {
executableFile
= FILE_UTILS.resolveFile(new File(dirs[i]), exec);
if (executableFile.exists()) {
return executableFile.getAbsolutePath();
}
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Copy.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/ExecTask.java
|
Method name: void buildMap(File, File, String[], FileNameMapper, Hashtable)
|
|
Method name: String resolveExecutable(String, boolean)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | for (int k = 0; k < mappedFiles.length; k++) {↵ | | 1 | for (int i = 0; i < dirs.length; i++) {↵
|
2 | mappedFiles[k] = new File(toDir, mappedFile↵ | | 2 | executableFile↵
|
3 | s[k]).getAbsolutePath();↵ | | 3 | = FILE_UTILS.resolveFile(new File(dirs[i]), exec);↵
|
4 | }↵ | | 4 | ↵
|
5 | map.put(src.getAbsolutePath(), mappedFiles); | | 5 | if (executableFile.exists()) {↵
|
| | | 6 | return executableFile.getAbsolutePath();↵
|
| | | 7 | }↵
|
| | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |