log.info( "configuring from url: " + url.toString() ); try { return doConfigure( url.openStream(), url.toString() ); } catch (IOException ioe) { throw new HibernateException( "could not configure from URL: " + url, ioe ); }
log.info( "configuring from file: " + configFile.getName() ); try { return doConfigure( new FileInputStream( configFile ), configFile.toString() ); } catch (FileNotFoundException fnfe) { throw new HibernateException( "could not find file: " + configFile, fnfe ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Configuration.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Configuration.java
Method name: Configuration configure(URL) Method name: Configuration configure(File)
Number of AST nodes: 3 Number of AST nodes: 3
1
log.info( "configuring from url: " + url.toString() );
1
log.info( "configuring from file: " + configFile.getName() );
2
		try {
2
		try {
3
			return doConfigure( url.openStream(), url.toString() );
3
			return doConfigure( new FileInputStream( configFile ), configFile.toString() );
4
		}
4
		}
5
		catch (IOException ioe) {
5
		catch (FileNotFoundException fnfe) {
6
			throw new HibernateException( "could not configure from URL: " + url, ioe );
6
			throw new HibernateException( "could not find file: " + configFile, fnfe );
7
		}
7
		}
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.3
Clones locationClones are declared in the same class
Number of node comparisons1