this.dir = fileset.dir; this.defaultPatterns = fileset.defaultPatterns; this.additionalPatterns = fileset.additionalPatterns; this.selectors = fileset.selectors; this.useDefaultExcludes = fileset.useDefaultExcludes; this.caseSensitive = fileset.caseSensitive; this.followSymlinks = fileset.followSymlinks; setProject(fileset.getProject());
this.name = other.name; this.ifCondition = other.ifCondition; this.unlessCondition = other.unlessCondition; this.dependencies = other.dependencies; this.location = other.location; this.project = other.project; this.description = other.description; // The children are added to after this cloning this.children = other.children;
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/AbstractFileSet.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/Target.java
Method name: void AbstractFileSet(AbstractFileSet) Method name: void Target(Target)
Number of AST nodes: 8 Number of AST nodes: 8
1
this.dir = fileset.dir;
1
this.
2
        this.defaultPatterns = fileset.defaultPatterns
2
name = other.name;
3
;
3
        this.ifCondition = other.ifCondition;
4
        this.additionalPatterns = fileset.additionalPatterns;
4
        this.
5
        this.selectors = fileset.selectors;
6
        this.useDefaultExcludes = fileset.useDefaultExcludes;
7
        this.caseSensitive = fileset.caseSensitive;
8
        this.followSymlinks = fileset.followSymlinks;
9
        setProject(fileset.getProject())
5
unlessCondition = other.unlessCondition;
6
        this.dependencies = other.dependencies;
7
        this.location = other.location;
8
        this.project = other.project;
9
        this.description = other.description;
10
        // The children are added to after this cloning
10
;
11
        this.children = other.children;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons64
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment7
    Number of unmapped statements in the second code fragment7
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                    
    1
    this.name = other.name;
    1
    this.dir = fileset.dir;
                                                    
                                                                                
    2
    this.ifCondition = other.ifCondition;
    2
    this.defaultPatterns = fileset.defaultPatterns;
                                                                                                    
                                                                                                
    3
    this.unlessCondition = other.unlessCondition;
    3
    this.additionalPatterns = fileset.additionalPatterns;
                                                                                                                
                                                                                    
    4
    this.dependencies = other.dependencies;
    4
    this.selectors = fileset.selectors;
                                                                            
                                                                    
    5
    this.location = other.location;
    5
    this.useDefaultExcludes = fileset.useDefaultExcludes;
                                                                                                                
    6
    this.caseSensitive = fileset.caseSensitive;
                                                                                            
    7
    this.followSymlinks = fileset.followSymlinks;
                                                                                                
    8
    setProject(fileset.getProject());
    8
    setProject(fileset.getProject());
    6
    this.project = other.project;
    Differences
    Expression1Expression2Difference
    fileset.getProject()other.projectTYPE_COMPATIBLE_REPLACEMENT
    thisMISSING_METHOD_INVOCATION_EXPRESSION
    setProject(fileset.getProject())this.project=other.projectFIELD_ASSIGNMENT_REPLACED_WITH_SETTER
    6
    this.project = other.project;
                                                                                
    7
    this.description = other.description;
                                                                    
    8
    this.children = other.children;
    Precondition Violations (0)
    Row Violation