void setBaseDir(File b) { checkAttributesAllowed(); baseDir = b; } /** * Return the basedir to which the name is relative. * @return the basedir as File. */ public File getBaseDir() { return isReference() ? ((FileResource) getCheckedRef()).getBaseDir() : baseDir;
void setEncoding(String enc) { checkAttributesAllowed(); encoding = enc; } /** * Get the encoding to use with the zipfile. * @return String encoding. */ public String getEncoding() { return isReference() ? ((ZipResource) getCheckedRef()).getEncoding() : encoding;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/FileResource.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/ZipResource.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setBaseDir(File b) {
1
void setEncoding(String enc) {
2
        checkAttributesAllowed();
2
        checkAttributesAllowed();
3
        baseDir = b;
3
        encoding = enc;
4
    }
4
    }
5
    /**
5
    /**
6
     * Return the basedir to which the name is relative.
6
     * Get the 
7
     * @return the basedir as File
7
encoding to use with the zipfile.
8
.
8
     * @return String encoding.
9
     */
9
     */
10
    public File getBaseDir() {
10
    public String getEncoding() {
11
        return isReference()
11
        return isReference()
12
            ? ((FileResource) getCheckedRef()).getBaseDir() : baseDir;
12
            ? ((ZipResource) getCheckedRef()).getEncoding() : encoding;
13
    
13
    
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