public void startElement(String name, AttributeList attrs) throws SAXParseException { if (task instanceof TaskContainer) { // task can contain other tasks - no other nested elements possible new TaskHandler(helperImpl, this, (TaskContainer) task, wrapper, target).init(name, attrs); } else { new NestedElementHandler(helperImpl, this, task, wrapper, target).init(name, attrs);
public void startElement(String name, AttributeList attrs) throws SAXParseException { if (child instanceof TaskContainer) { // taskcontainer nested element can contain other tasks - no other // nested elements possible new TaskHandler(helperImpl, this, (TaskContainer) child, childWrapper, target).init(name, attrs); } else { new NestedElementHandler(helperImpl, this, child, childWrapper, target).init(name, attrs);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/helper/ProjectHelperImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void startElement(String name, AttributeList attrs) throws SAXParseException {
1
public void startElement(String name, AttributeList attrs) throws SAXParseException {
2
            if (task instanceof TaskContainer) {
2
            if (child instanceof TaskContainer) {
3
                // task can contain other tasks - no other
3
                // taskcontainer nested element can contain other tasks - no other
4
 nested elements possible
4
                // nested elements possible
5
                new TaskHandler(helperImpl, this, (TaskContainer) task,
5
                new TaskHandler(helperImpl, this, (TaskContainer) child,
6
                    wrapper, target).init(name, attrs);
6
                    childWrapper, target).init(name, attrs);
7
            } else {
7
            } else {
8
                new NestedElementHandler(helperImpl, this, task,
8
                new NestedElementHandler(helperImpl, this, child,
9
                    wrapper, target).init(name, attrs);
9
                    childWrapper, target).init(name, attrs);
10
            
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 location
Number of node comparisons0