if (localOnly || version != null) { option = new Option(); option.setCacheModeLocal(localOnly); option.setDataVersion(version); }
if ( index == null ) { index = new Index(); index.setName( indexName ); index.setTable( this ); indexes.put( indexName, index ); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/cache-jbosscache2/src/main/java/org/hibernate/cache/jbc2/util/CacheHelper.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/Table.java
Method name: Node addNode(Cache, Fqn, boolean, boolean, DataVersion) Method name: Index getOrCreateIndex(String)
Number of AST nodes: 4 Number of AST nodes: 5
1
if (localOnly || version != null) {
1
if ( index == null ) {
2
                option = new Option();
3
                option.setCacheModeLocal(localOnly);
4
                option.setDataVersion(version);
5
            
2
			index = new Index();
3
			index.setName( indexName );
4
			index.setTable( this );
5
			indexes.put( indexName, index );
6
}
6
		}
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.1
Clones locationClones are in different classes
Number of node comparisons1