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