for (Enumeration e = props.keys(); e.hasMoreElements();) {
String key = (String) e.nextElement();
String value = props.getProperty(key);
hash.put(key, value);
}
while (e.hasMoreElements()) {
String arg = (String) e.nextElement();
String value = (String) definedProps.get(arg);
project.setUserProperty(arg, value);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/filters/ReplaceTokens.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Main.java
|
Method name: void initialize()
|
|
Method name: void runBuild(ClassLoader)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (Enumeration e = props.keys(); e.hasMoreElements();) {↵ | | 1 | while (e.hasMoreElements()) {↵
|
2 | String key = (String) e.nextElement();↵ | | 2 | String arg = (String) e.nextElement();↵
|
3 | String value = props.getProperty(key);↵ | | 3 | String value = ↵
|
4 | hash.put(key↵ | | 4 | (String) definedProps.get(arg);↵
|
5 | , value);↵ | | 5 | project.setUserProperty(arg, value);↵
|
6 | } | | 6 | }
|
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 |