if (url == null) {
String msg = "Unable to locate config file: " + path;
log.error( msg );
throw new HibernateException(msg);
}
if ( !selectRS.next() ) {
String err = "could not read a hi value - you need to populate the table: " + tableName;
log.error( err );
throw new IdentifierGenerationException( err );
}
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/util/ConfigHelper.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java
|
Method name: InputStream getConfigStream(String)
|
|
Method name: Serializable doWorkInCurrentTransaction(Connection, String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (url == null) {↵ | | 1 | if (↵
|
| | | 2 | !selectRS.next() ) {↵
|
2 | String msg = "Unable to locate config file: " + path;↵ | | 3 | String err = "↵
|
| | | 4 | could not read a hi value - you need to populate the table: " + tableName;↵
|
3 | log.error( msg );↵ | | 5 | log.error( ↵
|
| | | 6 | err );↵
|
4 | throw new HibernateException(msg);↵ | | 7 | throw new IdentifierGenerationException(↵
|
| | | 8 | err );↵
|
5 | } | | 9 | }
|
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 | 1 |