super(fileset); src = fileset.src; prefix = fileset.prefix; fullpath = fileset.fullpath; hasDir = fileset.hasDir; fileMode = fileset.fileMode; dirMode = fileset.dirMode; fileModeHasBeenSet = fileset.fileModeHasBeenSet; dirModeHasBeenSet = fileset.dirModeHasBeenSet;
final ExtensionAdapter other = (ExtensionAdapter) o; extensionName = other.extensionName; specificationVersion = other.specificationVersion; specificationVendor = other.specificationVendor; implementationVersion = other.implementationVersion; implementationVendorID = other.implementationVendorID; implementationVendor = other.implementationVendor; implementationURL = other.implementationURL;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/ArchiveFileSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/extension/ExtensionAdapter.java
Method name: void ArchiveFileSet(ArchiveFileSet) Method name: void setRefid(Reference)
Number of AST nodes: 9 Number of AST nodes: 8
1
super(fileset);
2
        src = fileset.src;
3
        prefix = fileset.prefix;
4
        fullpath = fileset.fullpath;
5
        hasDir = fileset.hasDi
1
final ExtensionAdapter other = (ExtensionAdapter) o;
2
            extensionName = other.extensionName;
3
            specificationVersion = other.specificationVersion;
6
r;
4
            specificationVendor = other.specificationVendor;
7
        fileMode = fileset.fileMode;
5
          
8
        dirMode = fileset.dirMode;
9
        fileModeHasBeenSet = fileset.fileModeHasBeenSet;
10
        dirModeHasBeenSet = fileset.dirModeHasBeenSet
6
  implementationVersion = other.implementationVersion;
7
            implementationVendorID = other.implementationVendorID;
8
            implementationVendor = other.implementationVendor;
11
;
9
            implementationURL = other.implementationURL;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons57
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment7
    Number of unmapped statements in the second code fragment6
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super(fileset);
                                        
    2
    src = fileset.src;
                                          
                                                                                                            
    5
    final ExtensionAdapter other = (ExtensionAdapter)o;
    3
    prefix = fileset.prefix;
    3
    prefix = fileset.prefix;
    6
    extensionName = other.extensionName;
    Differences
    Expression1Expression2Difference
    prefixextensionNameVARIABLE_NAME_MISMATCH
    filesetotherVARIABLE_NAME_MISMATCH
    org.apache.tools.ant.types.ArchiveFileSetorg.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapterSUBCLASS_TYPE_MISMATCH
    prefixextensionNameVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression prefix is a field being modified, and thus it cannot be parameterized
    Expression extensionName is a field being modified, and thus it cannot be parameterized
    6
    extensionName = other.extensionName;
    4
    fullpath = fileset.fullpath;
    4
    fullpath = fileset.fullpath;
    8
    specificationVendor = other.specificationVendor;
    Differences
    Expression1Expression2Difference
    fullpathspecificationVendorVARIABLE_NAME_MISMATCH
    filesetotherVARIABLE_NAME_MISMATCH
    org.apache.tools.ant.types.ArchiveFileSetorg.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapterSUBCLASS_TYPE_MISMATCH
    fullpathspecificationVendorVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression fullpath is a field being modified, and thus it cannot be parameterized
    Expression specificationVendor is a field being modified, and thus it cannot be parameterized
    8
    specificationVendor = other.specificationVendor;
    5
    hasDir = fileset.hasDir;
                                                      
    6
    fileMode = fileset.fileMode;
                                                              
                                                                                                          
    7
    specificationVersion = other.specificationVersion;
    7
    dirMode = fileset.dirMode;
                                                          
    8
    fileModeHasBeenSet = fileset.fileModeHasBeenSet;
                                                                                                      
                                                                                                              
    9
    implementationVersion = other.implementationVersion;
    9
    dirModeHasBeenSet = fileset.dirModeHasBeenSet;
                                                                                                  
                                                                                                                    
    10
    implementationVendorID = other.implementationVendorID;
                                                                                                            
    11
    implementationVendor = other.implementationVendor;
                                                                                                
    12
    implementationURL = other.implementationURL;
    Precondition Violations (4)
    Row Violation
    1Expression prefix is a field being modified, and thus it cannot be parameterized
    2Expression extensionName is a field being modified, and thus it cannot be parameterized
    3Expression fullpath is a field being modified, and thus it cannot be parameterized
    4Expression specificationVendor is a field being modified, and thus it cannot be parameterized