public class IdbagOwner { private String name; private List children = new ArrayList(); public IdbagOwner() { } public IdbagOwner(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children
public class Product { private String name; private Map parts = new HashMap(); Product() {} public Product(String n) { name = n; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Map getParts() { return parts; } public void setParts(Map users) { this.parts = users
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/idbag/IdbagOwner.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mapcompelem/Product.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class IdbagOwner {
1
public class Product {
2
	private String name;
2
	private String name;
3
	private List children = new ArrayList();
3
	private 
4
	public IdbagOwner() {
5
	}
6
	public IdbagOwner
4
Map parts = new HashMap();
5
	Product() {}
7
(String name) {
6
	public Product(String n) {
8
		this.name = name;
7
		name = n
9
	}
10

8
;
9
	}
11
	public String getName() {
10
	public String getName() {
12
		return name;
11
		return name;
13
	}
12
	}
14

15
	public void setName(String name) {
13
	public void setName(String name) {
16
		this.name = name;
14
		this.name = name;
17
	}
15
	}
18

19
	public List getChildren() {
16
	public Map getParts() {
20
		return children;
17
		return 
21
	}
22

18
parts;
19
	}
23
	public void setChildren(List children) {
20
	public void setParts(Map users) {
24
		this.children = children
21
		this.parts = users
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