registerThreadTask(Thread.currentThread(), task); BuildEvent event = new BuildEvent(task); Iterator iter = listeners.iterator(); while (iter.hasNext()) { BuildListener listener = (BuildListener) iter.next(); listener.taskStarted(event); }
warnings.addElement("Multiple Class-Path attributes " + "are supported but violate the Jar " + "specification and may not be correctly " + "processed in all environments"); Enumeration e = attribute.getValues(); while (e.hasMoreElements()) { String value = (String) e.nextElement(); classpathAttribute.addValue(value); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Project.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Manifest.java
Method name: void fireTaskStarted(Task) Method name: String addAttributeAndCheck(Attribute)
Number of AST nodes: 6 Number of AST nodes: 5
1
registerThreadTask(Thread.currentThread(), task);
2
        BuildEvent event = new BuildEvent(task);
3
        Iterator iter = listeners.iterator();
4
        while (iter.hasNext()) {
5
            BuildListener listener = (BuildListener) iter.next();
6
            listener.taskStarted(event);
1
warnings.addElement("Multiple Class-Path attributes "
2
                            + "are supported but violate the Jar "
3
                            + "specification and may not be correctly "
4
                            + "processed in all environments");
5
                        Enumeration e = attribute.getValues();
6
                        while (e.hasMoreElements()) {
7
                            String value = (String) e.nextElement();
8
                            classpathAttribute.addValue(value);
7
        }
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