RuntimeConfigurable childWrapper = (RuntimeConfigurable) e.nextElement(); UnknownElement childElement = new UnknownElement(childWrapper.getElementTag()); parentElement.addChild(childElement); childElement.setProject(getProject()); childElement.setRuntimeConfigurableWrapper(childWrapper); childWrapper.setProxy(childElement); replaceChildren(childWrapper, childElement);
Vector sources = (Vector) filesets.clone(); if (jar != null) { //we create a fileset with the source file. //this lets us combine our logic for handling output directories, //mapping etc. FileSet sourceJar = new FileSet(); sourceJar.setProject(getProject()); sourceJar.setFile(jar); sourceJar.setDir(jar.getParentFile()); sources.add(sourceJar); } return sources;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Task.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/AbstractJarSignerTask.java
Method name: void replaceChildren(RuntimeConfigurable, UnknownElement) Method name: Vector createUnifiedSources()
Number of AST nodes: 7 Number of AST nodes: 8
1
RuntimeConfigurable childWrapper =
2
                (RuntimeConfigurable) e.nextElement();
3
            UnknownElement childElement =
4
                new UnknownElement(childWrapper.getElementTag());
1
Vector sources = (Vector) filesets.clone();
2
        if (jar != null) {
3
            //we create a fileset with the source file.
4
            //this lets us combine our logic for handling output directories,
5
            //mapping etc.
5
            parentElement.addChild(childElement);
6
            FileSet sourceJar = new FileSet();
6
            childElement.setProject(getProject());
7
            sourceJar.setProject(getProject());
7
            childElement.setRuntimeConfigurableWrapper(childWrapper);
8
            sourceJar.setFile(jar);
8
            childWrapper.setProxy(childElement);
9
            
9
            replaceChildren(childWrapper, childElement)
10
sourceJar.setDir(jar.getParentFile());
11
            sources.add(sourceJar);
12
        }
10
;
13
        return sources;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
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 comparisons14
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation