try {
if (c != null) {
c.close();
}
} catch (SQLException e) {
log.warn("Error closing Connection", e);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/ResultCollector.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
|
Method name: boolean trimLastLine(String)
|
|
Method name: void close(Connection)
|
Number of AST nodes: 0
|
|
Number of AST nodes: 3
|
|
| | | 1 | try {↵
|
| | | 2 | if (c != null) {↵
|
| | | 3 | c.close();↵
|
| | | 4 | }↵
|
| | | 5 | } catch (SQLException e) {↵
|
| | | 6 | log.warn("Error closing Connection", e);↵
|
| | | 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 having the same super class |
Number of node comparisons | 0 |