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; }
FilterChain createFilterChain() { FilterChain filterChain = new FilterChain(); filterChains.addElement(filterChain); return filterChain; } /** * Add a filterset. * @return a filter set object. */ public FilterSet createFilterSet() { FilterSet filterSet = new FilterSet(); filterSets.addElement(filterSet); return filterSet; }
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/Copy.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(dtdLocatio
1
FilterChain createFilterChain() {
2
        FilterChain filterChain = new FilterChain();
4
n);
3
        filterChains.addElement(filterChain);
5
        return dtdLocation;
4
        return filterChain;
6
    }
5
    }
7
    /**
6
    /**
8
     * Adds a fileset for support elements.
7
     * Add a filterset.
9
     *
10
     * @return a fileset which can be populated with support files.
8
     * @return a filter set object.
11
     */
9
     */
12
    public FileSet createSupport() {
10
    public FilterSet createFilterSet() {
13
        FileSet supportFileSet = new FileSet();
11
        FilterSet filterSet = new FilterSet();
14
        config.supportFileSets.add(supportFileSet);
12
        filterSets.addElement(filterSet);
15
        return supportFileSet;
13
        return filterSet;
16
    }
14
    }
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