File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/Parallel.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/util/optional/ScriptRunner.java | |||
Method name: void spinThreads()
|
Method name: void throwBuildException(BSFException)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | if (firstException↵ | 1 | if (te != null) {↵ | |
2 | instanceof BuildException) {↵ | 2 | if (te instanceof BuildException) {↵ | |
3 | throw (BuildException) firstException;↵ | 3 | throw (BuildException) te;↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | throw new BuildException(firstException);↵ | 5 | t = te;↵ | |
6 | } | 6 | }↵ | |
7 |
| |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 10 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56 | if (firstException instanceof BuildException) |
| 4 | if (te instanceof BuildException) | ||||||||||
57 | throw (BuildException)firstException; |
| 5 | throw (BuildException)te; | ||||||||||
else | | |||||||||||||
| 6 | t = te; | ||||||||||||
58 | throw new BuildException(firstException); |
| |
Row | Violation |
---|---|
1 | Unmatched throw new BuildException(firstException); |