for (Enumeration e = params.elements(); e.hasMoreElements();) { Param p = (Param) e.nextElement(); if (p.shouldUse()) { liaison.addParam(p.getName(), p.getExpression()); } }
for (Iterator dlnk = linksInDir.iterator(); dlnk.hasNext();) { File lnk = (File) dlnk.next(); try { linksToStore.put(lnk.getName(), lnk.getCanonicalPath()); } catch (IOException ioe) { handleError("Couldn't get canonical name of parent link"); } }
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/taskdefs/optional/unix/Symlink.java
Method name: void configureLiaison(Resource) Method name: void record()
Number of AST nodes: 4 Number of AST nodes: 4
1
for (Enumeration e = params.elements(); e.hasMoreElements();) {
1
for (
2
                Param p = (Param) e.nextElemen
2
Iterator dlnk = linksInDir.iterator(); dlnk.hasNext();) {
3
t();
3
                    File lnk = (File) dlnk.next();
4
                if (p.shouldUse()) {
4
                    try {
5
                    liaison.addParam(p.getName(), p.getExpression()
5
                        linksToStore.put(lnk.getName(), lnk.getCanonicalPath());
6
                    } catch (IOException ioe) {
6
);
7
                        handleError("Couldn't get canonical name of parent link");
7
                }
8
                
9
    }
8
            }
10
                }
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1