for (Enumeration e = params.elements(); e.hasMoreElements();) {
Param p = (Param) e.nextElement();
if (p.shouldUse()) {
liaison.addParam(p.getName(), p.getExpression());
}
}
for (Enumeration e = System.getProperties().propertyNames();
e.hasMoreElements();) {
String name = (String) e.nextElement();
ret.put(name, System.getProperties().getProperty(name));
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/PropertySet.java
|
Method name: void configureLiaison(Resource)
|
|
Method name: Hashtable getAllSystemProperties()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | for (Enumeration e = params.elements();↵ | | 1 | for (Enumeration e = System.getProperties().propertyNames();↵
|
2 | e.hasMoreElements();) {↵ | | 2 | e.hasMoreElements();) {↵
|
3 | Param p = (Param) e.nextElement();↵ | | 3 | String name = (String) e.nextElement();↵
|
4 | if (p.shouldUse()) {↵ | | 4 | ↵
|
5 | liaison.addParam(p.getName(), p.getExpression());↵ | | |
|
6 | }↵ | | |
|
7 | ↵ | | 5 | ret.put(name, System.getProperties().getProperty(name));↵
|
8 | } | | 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 having the same super class |
Number of node comparisons | 1 |