public class User { private String name; private List groups = new ArrayList(); User() {} public User(String name) { this.name = name; } public String getName() { return name; } void setName(String name) { this.name = name; } public List getGroups() { return groups; } void setGroups(List groups) { this.groups = groups
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/idbag/User.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 User {
1
public class Product {
2
	private String name;
2
	private String name;
3
	private List groups = new ArrayList();
3
	private 
4
	
5
	User
4
Map parts = new HashMap();
6
() {}
5
	Product() {}
7
	
6
	
8
	public User(String name) {
7
public Product(String n) {
9
		this.name = name;
8
		name = n;
10
	}
9
	}
11
	public String getName() {
10
	public String getName() {
12
		return name;
11
		return name;
13
	}
12
	}
14
	
13
	
15
	void setName(String name) {
14
public void setName(String name) {
16
		this.name = name;
15
		this.name = name;
17
	}
16
	}
18
	public List getGroups() {
17
	public Map getParts() {
19
		return groups;
18
		return parts;
20
	}
19
	}
21
	
20
	
22
	void setGroups(List groups) {
21
public void setParts(Map users) {
23
		this.groups = groups
22
		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