if (targetFile.lastModified() > outputTimestamp) {
filesOutOfDate++;
owner.log(targetFile.toString() + " is out of date",
Project.MSG_VERBOSE);
} else {
owner.log(targetFile.toString(),
Project.MSG_VERBOSE);
}
if (casesFile == null) {
cmd.createArgument().setValue(test.getName());
} else {
log("Running multiple tests in the same VM", Project.MSG_VERBOSE);
cmd.createArgument().setValue(Constants.TESTSFILE + casesFile);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
|
Method name: int scanOneFileset(DirectoryScanner, Hashtable, long)
|
|
Method name: TestResultHolder executeAsForked(JUnitTest, ExecuteWatchdog, File)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (targetFile.lastModified() > outputTimestamp) {↵ | | 1 | if (↵
|
2 | filesOutOfDate++↵ | | 2 | casesFile == null) {↵
|
3 | ;↵ | | 3 | cmd.createArgument().setValue(test.getName());↵
|
4 | ↵ | | 4 | } else {↵
|
5 | owner.log(targetFile.toString() + " is out of date",↵ | | 5 | ↵
|
6 | Project.MSG_VERBOSE);↵ | | |
|
7 | } else {↵ | | |
|
8 | owner.log(targetFile.toString(),↵ | | |
|
9 | Project.MSG_VERBOSE);↵ | | |
|
10 | ↵ | | 6 | log("Running multiple tests in the same VM", Project.MSG_VERBOSE);↵
|
| | | 7 | cmd.createArgument().setValue(Constants.TESTSFILE + casesFile);↵
|
11 | } | | 8 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |