synchronized (this) { HashMap temp = (HashMap) map.clone(); temp.putAll(in); map = temp; }
while ( iter.hasNext() ) { SecondPass sp = (SecondPass) iter.next(); sp.doSecondPass( classes ); iter.remove(); }
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/util/FastHashMap.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/cfg/Configuration.java
Method name: void putAll(Map) Method name: void secondPassCompile()
Number of AST nodes: 4 Number of AST nodes: 4
1
synchronized (this) {
2
			HashMap temp = (HashMap) map.clone();
3
			temp.putAll(in);
4
			map = temp
1
while ( iter.hasNext() ) {
2
			SecondPass sp = (SecondPass) iter.next();
3
			sp.doSecondPass( classes );
5
;
4
			iter.remove();
6
		}
5
		}
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