String dialectName = properties.getProperty( Environment.DIALECT ); if ( dialectName == null ) { return determineDialect( connection ); } else { return constructDialect( dialectName ); }
Properties clone = ( Properties ) props.clone(); if ( clone.get( key ) != null ) { clone.setProperty( key, "****" ); } return clone;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/dialect/resolver/DialectFactory.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/util/PropertiesHelper.java
Method name: Dialect buildDialect(Properties, Connection) Method name: Properties maskOut(Properties, String)
Number of AST nodes: 4 Number of AST nodes: 4
1
String dialectName = properties.getProperty( Environment.DIALECT );
1
Properties clone = ( Properties
2
		if ( dialectName == null ) {
3
			return determineDialect( connection );
4
		}
5
		else {
6
	
2
 ) props.clone();
3
		if ( clone.get( key ) != null ) {
4
			clone.setProperty( key, "****" );
5
		}
7
		return constructDialect( dialectName );
6
		return clon
8
		}
7
e;
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.2
Clones locationClones are in different classes
Number of node comparisons3