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;
public class Parent { private String name; private List children = new ArrayList(); Parent() {} public Parent(String name) { this.name = name; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children; } public String getName() { return name; } public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mapcompelem/Product.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unidir/Parent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Product {
1
public class Parent {
2
	private String name;
2
	private String name;
3
	private Map parts = new HashMap();
3
	private List children = new ArrayList();
4
	Product() {}
4
	Parent() {}
5
	public Product(String n) {
5
	public Parent(String name) {
6
		name = n;
6
		this.name = name;
7
	}
7
	}
8
	public String getName() {
8
	public List getChildren() {
9
		return name;
9
		return children;
10
	}
10
	}
11
	public void setName(String name) {
11
	public void set
12
		this.name = name
12
Children(List children) {
13
;
13
		this.children = children;
14
	}
14
	}
15
	public Map getParts() {
15
	public String getName() {
16
		return parts;
16
		return name;
17
	}
17
	}
18
	public void setParts(Map users) {
18
	public void set
19
		this.parts = users
19
Name(String name) {
20
;
20
		this.name = name;
21
	
21
	
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