for (Enumeration e = params.elements(); e.hasMoreElements();) { Param p = (Param) e.nextElement(); if (p.shouldUse()) { liaison.addParam(p.getName(), p.getExpression()); } }
for (Enumeration e = pathComponents.elements(); e.hasMoreElements();) { File pathComponent = (File) e.nextElement(); if (pathComponent.equals(component)) { return true; } }
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/AntClassLoader.java
Method name: void configureLiaison(Resource) Method name: boolean isInPath(File)
Number of AST nodes: 4 Number of AST nodes: 4
1
for (Enumeration e = params.elements(); e.hasMoreElements();) {
1
for (Enumeration e = pathComponents.elements(); e.hasMoreElements();) {
2
                Param p = (Param) e.nextElement();
2
            File pathComponent = (File) e.nextElement();
3
                if (p.shouldUse()) {
3
            if (p
4
                    liaison.addParam(p.getName(), p.getExpression())
4
athComponent.equals(component)) {
5
;
5
                return true;
6
                }
6
            
7
    
7
}
8
        }
8
        }
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