File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/AbstractBatcher.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/AbstractBatcher.java | |||
Method name: void logClosePreparedStatement()
|
Method name: void logCloseResults()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if ( log.isDebugEnabled() ) {↵ | 1 | if ( log.isDebugEnabled() ) {↵ | |
2 | log.debug( "about to close PreparedStatement" + preparedStatementCountsToString() );↵ | 2 | log.debug( "about to close ResultSet" + resultSetCountsToString() );↵ | |
3 | openPreparedStatementCount--;↵ | 3 | openResultSetCount--;↵ | |
4 | globalOpenPreparedStatementCount--;↵ | 4 | globalOpenResultSetCount--;↵ | |
5 | } | 5 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (log.isDebugEnabled()) | 1 | if (log.isDebugEnabled()) | ||||||||||||||
2 | log.debug("about to close PreparedStatement" + preparedStatementCountsToString()); |
| 2 | log.debug("about to close ResultSet" + resultSetCountsToString()); | |||||||||||||
3 | openPreparedStatementCount--; |
| 3 | openResultSetCount--; | |||||||||||||
4 | globalOpenPreparedStatementCount--; |
| 4 | globalOpenResultSetCount--; |
Row | Violation |
---|---|
1 | Expression openPreparedStatementCount is a field being modified, and thus it cannot be parameterized |
2 | Expression openResultSetCount is a field being modified, and thus it cannot be parameterized |
3 | Expression globalOpenPreparedStatementCount is a field being modified, and thus it cannot be parameterized |
4 | Expression globalOpenResultSetCount is a field being modified, and thus it cannot be parameterized |