for ( int i=0; i<columnNames.length; i++ ) { if ( columnNames[i]!=null ) addColumn( columnNames[i] ); } return this;
for ( int i=0; i<columnNames.length; i++ ) { addColumn( columnNames[i] ); } return this;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/sql/SimpleSelect.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/sql/Update.java
Method name: SimpleSelect addColumns(String[]) Method name: Update addColumns(String[])
Number of AST nodes: 4 Number of AST nodes: 3
1
for ( int i=0; i<columnNames.length; i++ ) {
1
for ( int i=0; i<columnNames.length; i++ ) {
2
			if ( columnNames[i]!=null ) addColumn( columnNames[i] );
2
			addColumn( columnNames[i] );
3
		}
3
		}
4
		return this;
4
		return this;
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 locationClones are in different classes
Number of node comparisons1