if (reader != null) {
try {
reader.close();
} catch (IOException e) {
throw new RuntimeException("Could not close reader!", e);
}
}
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/test/org/jruby/test/TestUnitTestSuite.java
|
|
File path: /jruby-1.4.0/src/org/jruby/java/MiniJava.java
|
Method name: List getTestClassNamesFromReadingTestScript(String)
|
|
Method name: Class defineOldStyleImplClass(Ruby, String, String[], Map>)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 0
|
|
1 | if (reader != null) {↵ | | | |
2 | try {↵ | | | |
3 | reader.close();↵ | | | |
4 | } catch (IOException e) {↵ | | | |
5 | throw new RuntimeException("Could not close reader!", e);↵ | | | |
6 | }↵ | | | |
7 | } | | | |
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 different classes |
Number of node comparisons | 0 |