final class Remove implements DelayedOperation { private int index; private Object old; public Remove(int index, Object old) { this.index = index; this.old = old; } public void operate() { list.remove(index); } public Object getAddedInstance() { return null; } public Object getOrphan() { return old;
public class Product implements Serializable { private String name; private Map parts = new HashMap(); public Product() { } public Product(String name) { this.name = name; } public String getName() { return name; } public Map getParts() { return parts; } public void setParts(Map parts) { this.parts = parts;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/collection/PersistentList.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/backref/map/compkey/Product.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
final class Remove implements DelayedOperation {
1
public class Product implements Serializable {
2
		private int index;
2
	private String name;
3
		private Object old;
3
	private 
4
		public Remove(int index, Object old
4
Map parts = new HashMap();
5
	public Product() {
6
	}
5
) {
7
	public Product(String name) {
6
			this.index = index;
8
		this.
7
			this.old = old;
8
		}
9
		public void operate() {
10
			list.remove(index)
9
name = name;
10
	}
11
	public String getName() {
11
;
12
		return name;
12
		}
13
	}
13
	
14
	public Object getAddedInstance() {
14
	public Map getParts() {
15
			return null;
15
		return parts;
16
		}
16
	}
17
	
18
	public Object getOrphan() {
17
	public 
19
			return old
18
void setParts(Map parts) {
20
;
19
		this.parts = parts;
21
		
20
	
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