for (int k = 0; k < mappedFiles.length; k++) {
mappedFiles[k] = new File(toDir, mappedFiles[k]).getAbsolutePath();
}
map.put(src.getAbsolutePath(), mappedFiles);
try {
out = new PrintWriter(new BufferedWriter(new FileWriter(script)));
for (int i = 0; i < cmd.length; i++) {
out.println(cmd[i]);
}
} finally {
FileUtils.close(out);
}
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/util/JavaEnvUtils.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
| | | 1 | try {↵
|
| | | 2 | out = new PrintWriter(new BufferedWriter(new FileWriter(script)));↵
|
1 | for (int k = 0; k < mappedFiles.length; k++) {↵ | | 3 | for (int i = 0; i < cmd.length; i++) {↵
|
2 | mappedFiles[k] = new File(toDir, mappedFiles[k]).getAbsolutePath();↵ | | 4 | ↵
|
3 | ↵ | | 5 | out.println(cmd[i]);↵
|
4 | }↵ | | 6 | }↵
|
5 | map.put(src.getAbsolutePath(), mappedFiles↵ | | 7 | } finally {↵
|
6 | );↵ | | 8 | FileUtils.close(out);↵
|
7 | | | 9 | }
|
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 | |
Number of node comparisons | 0 |