super.stop();
try {
getErr().close();
getOut().close();
} catch (final IOException e) {
// plain impossible
throw new BuildException(e);
}
super.stop();
try {
getErr().close();
getOut().close();
} catch (IOException e) {
// plain impossible
throw new BuildException(e);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/cvslib/RedirectingStreamHandler.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/LogStreamHandler.java
|
Method name: void stop()
|
|
Method name: void stop()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | super.stop();↵ | | 1 | super.stop();↵
|
2 | try {↵ | | 2 | try {↵
|
3 | getErr().close();↵ | | 3 | getErr().close();↵
|
4 | getOut().close();↵ | | 4 | getOut().close();↵
|
5 | } catch (final IOException e) {↵ | | 5 | } catch (IOException e) {↵
|
6 | // plain impossible↵ | | 6 | // plain impossible↵
|
7 | throw new BuildException(e);↵ | | 7 | throw new BuildException(e);↵
|
8 | } | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 2 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super.stop(); | | 1 | super.stop(); |
| | | 2 | try |
| | | 3 | |
| | | 4 | |
2 | try | | | |
3 | | | | |
4 | | | | |
Precondition Violations (2)
Row |
Violation |
1 | Super method call super.stop(); cannot be extracted from method |
2 | Super method call super.stop(); cannot be extracted from method |