if (destfile.exists() && !destfile.canWrite()) { String message = "Can not write to the specified destfile!"; if (failonerror) { throw new BuildException(message, getLocation()); } else { log(message, Project.MSG_ERR); } return; }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/EchoProperties.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
Method name: void execute() Method name: void execute()
Number of AST nodes: 6 Number of AST nodes: 0
1
if (destfile.exists() && !destfile.canWrite()) {
2
                    String message =
3
                        "Can not write to the specified destfile!";
4
                    if (failonerror) {
5
                        throw new BuildException(message, getLocation());
6
                    } else {
7
                        log(message, Project.MSG_ERR);
8
                    }
9
                    return;
10
                }
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 locationClones are in the same method
Number of node comparisons0