File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/transaction/Isolater.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaExport.java | |||
Method name: void delegateWork(IsolatedWork, boolean)
|
Method name: void execute(boolean, boolean, boolean, boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if ( connection != null ) {↵ | |||
2 | if ( transacted && wasAutoCommit ) {↵ | |||
3 | try {↵ | |||
4 | connection.setAutoCommit( true ↵ | 1 | try {↵ | |
2 | if ( outputFileWriter != null ) {↵ | |||
3 | outputFileWriter.close();↵ | |||
4 | }↵ | |||
5 | if ( importFileReader != null ) {↵ | |||
5 | );↵ | 6 | importFileReader.close();↵ | |
6 | }↵ | 7 | }↵ | |
7 | ↵ | 8 | }↵ | |
8 | catch( Throwable ignore ) {↵ | 9 | catch ( IOException ioe ) {↵ | |
9 | log.trace( "was unable to reset connection back to auto-commit" );↵ | 10 | exceptions.add( ioe );↵ | |
10 | }↵ | 11 | ↵ | |
11 | }↵ | |||
12 | session.getBatcher().closeConnection( connection );↵ | 12 | log.error( "Error closing output file: " + outputFile, ioe );↵ | |
13 | } | 13 | } | |
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 0 |
Number of mapped statements | 0 |
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.0 |
Clone type | Unknown type |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|