Path createAddfiles() { if (this.addfiles == null) { this.addfiles = new Path(getProject()); } return this.addfiles.createPath(); } /** * Sets the files to be added into the output. * @param addfiles a path */ public void setAddfiles(Path addfiles) { if (this.addfiles == null) { this.addfiles = addfiles; } else { this.addfiles.append(addfiles); }
Path createMergefiles() { if (this.mergefiles == null) { this.mergefiles = new Path(getProject()); } return this.mergefiles.createPath(); } /** * Sets the files to be merged into the output. * @param mergefiles a path */ public void setMergefiles(Path mergefiles) { if (this.mergefiles == null) { this.mergefiles = mergefiles; } else { this.mergefiles.append(mergefiles); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/jlink/JlinkTask.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Path createAddfiles() {
1
Path createMergefiles() {
2
        if (this.addfiles == null) {
2
        if (this.mergefiles == null) {
3
            this.addfiles = new Path(getProject());
3
            this.mergefiles = new Path(getProject());
4
        }
4
        }
5
        return this.addfiles.createPath();
5
        return this.mergefiles.createPath();
6
    }
6
    }
7
    /**
7
    /**
8
     * Sets the files to be added into the output.
8
     * Sets the files to be merged into the output.
9
     * @param addfiles a path
9
     * @param mergefiles a path
10
     */
10
     */
11
    public  void setAddfiles(Path addfiles) {
11
    public  void setMergefiles(Path mergefiles) {
12
        if (this.addfiles == null) {
12
        if (this.mergefiles == null) {
13
            this.addfiles = addfiles;
13
            this.mergefiles = mergefiles;
14
        } else {
14
        } else {
15
            this.addfiles.append(addfiles);
15
            this.mergefiles.append(mergefiles);
16
        }
16
        }
17
    
17
    
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