while (affectedClassEnum.hasMoreElements()) { String affectedClass = (String) affectedClassEnum.nextElement(); ClassFileInfo info = (ClassFileInfo) affectedClasses.get(affectedClass); log(" " + affectedClass + " in " + info.absoluteFile.getPath(), Project.MSG_DEBUG); }
while (it.hasNext()) { BaseAssertion assertion = (BaseAssertion) it.next(); String arg = assertion.toCommand(); getProject().log("adding assertion " + arg, Project.MSG_DEBUG); commandIterator.add(arg); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/Depend.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/Assertions.java
Method name: void dumpDependencies() Method name: void applyAssertions(ListIterator)
Number of AST nodes: 4 Number of AST nodes: 5
1
while (affectedClassEnum.hasMoreElements()) {
1
while (
2
                String affectedClass = (String) affectedClassEnum.nextElement();
3
                ClassFileInfo info
4
                    = (ClassFileInfo) affectedClasses.get(affectedClass);
5
                log("    " + affectedClass + " in "
6
                    + info.absoluteFile.getPath(), Project.MSG_DEBUG);
7
    
2
it.hasNext()) {
3
            BaseAssertion assertion = (BaseAssertion) it.next();
4
            String arg = assertion.toCommand();
5
            getProject().log("adding assertion " + arg, Project.MSG_DEBUG);
6
            commandIterator.add(arg);
8
        }
7
        }
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 having the same super class
Number of node comparisons1