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