public class Contract implements Serializable { private long id; private String customerName; private String type; private List variations; public Contract() { super(); } public Contract(String customerName, String type) { this.customerName = customerName; this.type = type; variations = new ArrayList(); } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getType() { return type; } public void setType(String type) { this.type = type; } public List getVariations() { return variations; } public void setVariations(List variations) { this.variations = variations;
public class Group implements Serializable { private String org; private String name; private String description; private Set users = new HashSet(); public Group(String name, String org) { this.org = org; this.name = name; } public Group() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getOrg() { return org; } public void setOrg(String org) { this.org = org; } public Set getUsers() { return users; } public void setUsers(Set users) { this.users = users; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/immutable/Contract.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomany/Group.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Contract implements Serializable {
1
public class Group implements Serializable {
2
	
3
	private long id;
2
	private String org;
4
	private String customerName;
3
	private String name;
5
	private String type;
4
	private String 
6
	private List variations;
7
	public Contract() {
8
		super
5
description;
9
();
6
	private Set users = new HashSet();
10
	}
7
	
11
	public Contract(String customerName, String type) {
8
	public Group(String name, String org) {
12
		this.customerName = customerName;
9
		this.org = org;
13
		this.type = type;
10
		this.name = name;
14
		variations = new ArrayList();
11
	}
12
	public Group() {
15
	}
13
	}
16
	public String getCustomerName() {
14
	public String getName() {
17
		return customerName;
15
		return name;
18
	}
16
	}
19
	public void setCustomerName(String customerName) {
17
	public void setName(String name) {
20
		this.customerName = customerName;
18
		this.name = name;
21
	}
19
	}
22
	public long getId() {
20
	public String getOrg() {
23
		return id;
21
		return org;
24
	}
22
	}
25
	public void setId(long id) {
23
	public void setOrg(String org) {
26
		this.id = id;
24
		this.org = org;
27
	}
25
	}
28
	public String getType() {
26
	public Set getUsers() {
29
		return type;
27
		return users;
30
	}
28
	}
31
	public void setType(String type) {
29
	public void set
32
		this.type = type;
33
	}
34
	public List getVa
30
Users(Set users) {
31
		this.users = users;
32
	}
35
riations() {
33
	public String getDescription() {
36
		return variations;
34
		return description;
37
	}
35
	}
38
	public void setVariations(List variations) {
36
	public void setDescription(String description) {
39
		this.variations = variations;
37
		this.description = description;
40
	
38
	
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