DTDLocation createDTD() { DTDLocation dtdLocation = new DTDLocation(); config.dtdLocations.add(dtdLocation); return dtdLocation; } /** * Adds a fileset for support elements. * * @return a fileset which can be populated with support files. */ public FileSet createSupport() { FileSet supportFileSet = new FileSet(); config.supportFileSets.add(supportFileSet); return supportFileSet; }
Attribute createAttribute() { final Attribute feature = new Attribute(); attributeList.addElement(feature); return feature; } /** * Creates a property. * * @return a property. * @since ant 1.6.2 */ public Property createProperty() { final Property prop = new Property(); propertyList.addElement(prop); return prop; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
DTDLocation createDTD() {
2
        DTDLocation dtdLocation = new DTDLocation();
3
        config.dtdLocations.add(dtdLocation
1
Attribute createAttribute() {
2
        final Attribute feature = new Attribute();
4
);
3
        attributeList.addElement(feature);
5
        return dtdLocation;
4
        return feature;
6
    }
5
    }
7
    /**
6
    /**
8
     * Adds a fileset for support elements.
7
     * 
9
     *
10
     * @return a fileset which can be populated with support files.
8
Creates a property.
9
     *
10
     * @return a property.
11
     * @since ant 1.6.2
11
     */
12
     */
12
    public FileSet createSupport() {
13
    public Property createProperty() {
13
        FileSet supportFileSet = new FileSet();
14
        
14
        config.supportFileSets.add(supportFileSet
15
final Property prop = new Property();
15
);
16
        propertyList.addElement(prop);
16
        return supportFileSet;
17
        return prop;
17
    }
18
    }
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