try { Class.forName( jdbcDriverClass ); } catch ( ClassNotFoundException cnfe ) { try { ReflectHelper.classForName( jdbcDriverClass ); } catch ( ClassNotFoundException e ) { String msg = "JDBC Driver class not found: " + jdbcDriverClass; log.error( msg, e ); throw new HibernateException( msg, e );
try { // trying via forName() first to be as close to DriverManager's semantics Class.forName(driverClass); } catch (ClassNotFoundException cnfe) { try { ReflectHelper.classForName(driverClass); } catch (ClassNotFoundException e) { String msg = "JDBC Driver class not found: " + driverClass; log.error( msg, e ); throw new HibernateException(msg, e);
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/connection-c3p0/src/main/java/org/hibernate/connection/C3P0ConnectionProvider.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/connection/DriverManagerConnectionProvider.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
try {
1
try {
2
				
2
				// trying via forName() first to be as close to DriverManager's semantics
3
Class.forName( jdbcDriverClass );
3
				Class.forName(driverClass);
4
			}
4
			}
5
			catch ( ClassNotFoundException cnfe ) {
5
			catch (ClassNotFoundException cnfe) {
6
				try {
6
				try {
7
					ReflectHelper.classForName( jdbcDriverClass );
7
					ReflectHelper.classForName(driverClass);
8
				}
8
				}
9
				catch ( ClassNotFoundException e ) {
9
				catch (ClassNotFoundException e) {
10
					String msg = "JDBC Driver class not found: " + jdbcDriverClass;
10
					String msg = "JDBC Driver class not found: " + driverClass;
11
					log.error( msg, e );
11
					log.error( msg, e );
12
					throw new HibernateException( msg, e );
12
					throw new HibernateException(msg, e);
13
				
13
				
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 location
Number of node comparisons0