if (inFile.exists() && inFile.isDirectory()) {
String message = "srcfile is a directory!";
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 (inFile.exists() && inFile.isDirectory()) {↵ | | | |
2 | String message = "srcfile is a directory!";↵ | | | |
3 | if (failonerror) {↵ | | | |
4 | throw new BuildException(message, getLocation());↵ | | | |
5 | } else {↵ | | | |
6 | log(message, Project.MSG_ERR);↵ | | | |
7 | }↵ | | | |
8 | return;↵ | | | |
9 | } | | | |
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 0 |