if (url == null) { String msg = "Unable to locate config file: " + path; log.error( msg ); throw new HibernateException(msg); }
if ( !rs.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/TableGenerator.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 ( !rs.next() ) {
2
			String msg = "Unable to locate config file: " + path;
2
					String err = "
3
could not read a hi value - you need to populate the table: " + tableName;
3
			log.error( msg );
4
					log.error(err);
4
			throw new HibernateException(msg);
5
					throw new IdentifierGenerationException(err);
5
		}
6
				}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1