public String[] getCollectionPropertyColumnAliases(String propertyName, String suffix) { String rawAliases[] = (String[]) collectionPropertyColumnAliases.get(propertyName); if ( rawAliases == null ) { return null; } String result[] = new String[rawAliases.length]; for ( int i=0; i<rawAliases.length; i++ ) { result[i] = new Alias(suffix).toUnquotedAliasString( rawAliases[i] ); } return result;
public String[] getSubclassPropertyColumnAliases(String propertyName, String suffix) { String rawAliases[] = ( String[] ) subclassPropertyAliases.get( propertyName ); if ( rawAliases == null ) { return null; } String result[] = new String[rawAliases.length]; for ( int i = 0; i < rawAliases.length; i++ ) { result[i] = new Alias( suffix ).toUnquotedAliasString( rawAliases[i] ); } return result;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/collection/AbstractCollectionPersister.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public String[] getCollectionPropertyColumnAliases(String propertyName, String suffix) {
1
public String[] getSubclassPropertyColumnAliases(String propertyName, String suffix) {
2
		String rawAliases[] = (String[]) collectionPropertyColumnAliases.get(propertyName);
2
		String rawAliases[] = ( String[] ) subclassPropertyAliases.get( propertyName );
3
		if ( rawAliases == null ) {
3
		if ( rawAliases == null ) {
4
			return null;
4
			return null;
5
		}
5
		}
6
		
7
		String result[] = new String[rawAliases.length];
6
		String result[] = new String[rawAliases.length];
8
		for ( int i=0; i<rawAliases.length; i++ ) {
7
		for ( int i = 0; i < rawAliases.length; i++ ) {
9
			result[i] = new Alias(suffix).toUnquotedAliasString( rawAliases[i] );
8
			result[i] = new Alias( suffix ).toUnquotedAliasString( rawAliases[i] );
10
		}
9
		}
11
		return result;
10
		return result;
12
	
11
	
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