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 User implements Serializable { private Long id; private String org; private String name; private Set groups = new HashSet(); public User() { } public User(String name, String org) { this.org = org; this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } 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 getGroups() { return groups; } public void setGroups(Set groups) { this.groups = groups
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/ordered/User.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Contract implements Serializable {
1
public class User implements Serializable {
2
	
2

3
	private long id;
3
	private Long id;
4
	private String customerName;
4
	private String org;
5
	private String type;
5
	private String name;
6
	private List variations;
6
	private 
7
	public Contract() {
8
		sup
7
Set groups = new HashSet();
9
er();
8
	public User()
10
	}
11
	public Contract(String customerN
9
 {
10
	}
12
ame, String type) {
11
	public User(String name, String org) {
13
		this.customerName = customerName;
12
		this.org = org;
14
		this.type = type;
13
		this.name = 
15
		variations = new ArrayList();
16
	}
14
name;
15
	}
16

17
	public String getCustomerName() {
17
	public Long getId() {
18
		return customerName;
18
		return 
19
	}
20
	public void setCustomerName(String customerName
19
id;
20
	}
21
) {
21
	public void setId(Long id) {
22
		this.customerName = customerName;
22
		this.
23
	}
23
id = id;
24
	}
25

24
	public long getId() {
26
	public String getName() {
25
		return id;
27
		return 
26
	}
28
name;
29
	}
30

27
	public void setId(long id) {
31
	public void setName(String name) {
28
		this.id = id;
32
		this.
29
	}
33
name = name;
34
	}
35

30
	public String getType() {
36
	public String getOrg() {
31
		return type;
37
		return 
32
	}
38
org;
39
	}
40

33
	public void setType(String type) {
41
	public void setOrg(String org) {
34
		this.type = type;
42
		this.
35
	}
43
org = org;
44
	}
45

36
	public List getVariations() {
46
	public Set getGroups() {
37
		return variations;
47
		return groups;
38
	}
48
	}
49

39
	public void setVariations(List variations) {
50
	public void setGroups(Set groups) {
40
		this.variations = variations
51
		this.groups = groups
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