RuntimeConfigurable r = (RuntimeConfigurable) e.nextElement(); UnknownElement ueChild = (UnknownElement) r.getProxy(); UnknownElement copyChild = ueChild.copy(newProject); copyRC.addChild(copyChild.getWrapper()); ret.addChild(copyChild);
for (Iterator i = dictionary.keySet().iterator(); i.hasNext();) { String key = (String) i.next(); try { Object val = dictionary.get(key); addBean(key, val); } catch (BuildException ex) { // The key is in the dictionary but cannot be retrieved // This is usually due references that refer to tasks // that have not been taskdefed in the current run. // Ignore } }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/UnknownElement.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/ScriptRunnerBase.java
Method name: UnknownElement copy(Project) Method name: void addBeans(Map)
Number of AST nodes: 5 Number of AST nodes: 5
1
RuntimeConfigurable r = (RuntimeConfigurable) e.nextElement();
2
            UnknownElement ueChild = (UnknownElement) r.getProxy();
3
            UnknownElement copyChild = ueChild.copy(newProject);
4
            copyRC.addChild(copyChild.getWrapper());
5
            ret.addChild(copyChild);
1
for (Iterator i = dictionary.keySet().iterator(); i.hasNext();) {
2
            String key = (String) i.next();
3
            try {
4
                Object val = dictionary.get(key);
5
                addBean(key, val);
6
            } catch (BuildException ex) {
7
                // The key is in the dictionary but cannot be retrieved
8
                // This is usually due references that refer to tasks
9
                // that have not been taskdefed in the current run.
10
                // Ignore
11
            }
12
        }
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
Number of node comparisons0
  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