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 Set children = new HashSet(); public Parent() { } public Parent(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getChildren() { return children; } public void setChildren(Set children) { this.children = children;
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/reattachment/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 
4
	Product() {}
4
Set children = new HashSet();
5
	public Parent() {
6
	}
7

5
	public Product(String n) {
8
	public Parent(String name) {
6
		name = n;
9
		this.name = n
7
	}
10
ame;
11
	}
12

8
	public String getName() {
13
	public String getName() {
9
		return name;
14
		return name;
10
	}
15
	}
16

11
	public void setName(String name) {
17
	public void setName(String name) {
12
		this.name = name;
18
		this.name = name;
13
	}
19
	}
20

14
	public Map getParts() {
21
	public Set getChildren() {
15
		return parts;
22
		return 
16
	}
23
children;
24
	}
25

17
	public void setParts(Map users) {
26
	public void setChildren(Set children) {
18
		this.parts = users;
27
		this.children = children;
19
	
28
	
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