if (inFile.exists() && !inFile.canRead()) { String message = "Can not read from the specified srcfile!"; 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: 0 Number of AST nodes: 6
1
if (inFile.exists() && !inFile.canRead()) {
2
                String message = "Can not read from the specified srcfile!";
3
                if (failonerror) {
4
                    throw new BuildException(message, getLocation());
5
                } else {
6
                    log(message, Project.MSG_ERR);
7
                }
8
                return;
9
            }
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