else if ( type.isComponentType() ) { Type[] subtypes = ( ( AbstractComponentType ) type ).getSubtypes(); for ( int i = 0; i < subtypes.length; i++ ) { if ( indicatesCollection( subtypes[i] ) ) { return true;
if ( !Character.isLetter( chars[0] ) ) { for ( int i = 1; i < chars.length; i++ ) { // as soon as we encounter our first letter, return the substring // from that position if ( Character.isLetter( chars[i] ) ) { return alias.substring( i );
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/util/StringHelper.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
else if ( type.isComponentType() ) {
2
			Type[] subtypes = ( ( AbstractComponentType ) type ).getSubtypes();
1
if ( !Character.isLetter( chars[0] ) ) {
3
			for ( int i = 0; i < subtypes.length; i++ ) {
2
			for ( int i = 1; i < chars.length; i++ ) {
4
				if ( indicatesCollection( subtype
3
				// as soon as we encounter our first letter, return the substring
4
				// from that position
5
s[i] ) ) {
5
				if ( Character.isLetter( chars[i] ) ) {
6
					return true;
6
					return alias.substring( i );
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.0
Clones location
Number of node comparisons0