if (additionalUserProperties != null) {
for (Enumeration e = additionalUserProperties.keys();
e.hasMoreElements();) {
String key = (String) e.nextElement();
String property = additionalUserProperties.getProperty(key);
definedProps.put(key, property);
}
}
for (Iterator i = filesList.iterator(); i.hasNext();) {
File f = (File) i.next();
File newFile = new File(destDir, f.getName());
if (newFile.exists()) {
filesToRemove.add(f);
}
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Main.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/image/Image.java
|
Method name: void startAnt(String[], Properties, ClassLoader)
|
|
Method name: void execute()
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if (additionalUserProperties != null) {↵ | | |
|
2 | for (Enumeration e = additionalUserProperties.keys();↵ | | |
|
3 | e.hasMoreElements();) {↵ | | |
|
4 | String key = (String) e.nextElement();↵ | | |
|
5 | String property = additionalUserProperties.getProperty(key);↵ | | |
|
6 | definedProps.put(key, property);↵ | | 1 | for (Iterator i = filesList.iterator(); i.hasNext();) {↵
|
| | | 2 | File f = (File) i.next();↵
|
| | | 3 | File newFile = new File(destDir, f.getName());↵
|
| | | 4 | if (newFile.exists()) {↵
|
| | | 5 | filesToRemove.add(f);↵
|
| | | 6 | }↵
|
7 | }↵ | | 7 | ↵
|
8 | } | | 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 |
Number of node comparisons | 1 |