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 Map parts = new HashMap();
4
		public Remove(int index, Object old) {
4
	public 
5
			this.index = index;
6
			this.old = old
5
Product() {
6
	}
7
	public Product(String name) {
7
;
8
		this.name = name;
8
		}
9
	}
9
	
10
	public void operate() {
10
	public 
11
			list.remove(index)
11
String getName() {
12
;
12
		return name;
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) {
19
		this.parts = parts
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