Object arg = e.nextElement(); if (inheritedProperties.containsKey(arg)) { continue; } Object value = userProperties.get(arg); other.setUserProperty(arg.toString(), value.toString());
for (Enumeration e = params.elements(); e.hasMoreElements();) { Param p = (Param) e.nextElement(); if (p.shouldUse()) { liaison.addParam(p.getName(), p.getExpression()); } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/PropertyHelper.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java
Method name: void copyUserProperties(Project) Method name: void configureLiaison(Resource)
Number of AST nodes: 5 Number of AST nodes: 4
1
Object arg = e.nextElement();
1
for (Enumeration e = params.elements(); e.hasMoreElements();) {
2
            if (inheritedProperties.containsKey(arg)) {
2
            
3
                continue;
3
    Param p = (Param) e.nextElement();
4
                if (p.shouldUse()) {
4
            }
5
            
5
            Object value = userProperties.get(arg);
6
        
6
            other.setUserProperty(arg.toString(), value.toString());
7
liaison.addParam(p.getName(), p.getExpression());
8
                }
9
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1