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