public class User implements Serializable { private String org; private String name; private Set groups = new HashSet(); public User(String name, String org) { this.org = org; this.name = name; } public User() { } 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
public class Person { private String name; private Date dob; private String currentAddress; Person() {} public Person(String name, Date dob, String address) { this.name = name; this.dob = dob; this.currentAddress = address; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getCurrentAddress() { return currentAddress; } public void setCurrentAddress(String currentAddress) { this.currentAddress = currentAddress
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomany/User.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/timestamp/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User implements Serializable {
1
public class 
2
	
2
Person {
3
	private String org;
3
	private String name;
4
	private String name;
4
	private Date dob;
5
	private Set groups = new HashSet();
5
	private S
6
tring currentAddress;
7
	Person() {}
6
	public User(String name, String org) {
8
	public Person(String name, 
7
		this.org = org;
8
		this.name = name;
9
	}
10
	public User() {
9
Date dob, String address) {
10
		this.name = name;
11
		this.dob = dob;
12
		this.currentAddress = address;
11
	}
13
	}
12
	public String getName() {
14
	public Date getDob() {
13
		return name;
15
		return dob;
14
	}
16
	}
15
	public void setName(String name) {
17
	public void set
16
		this.name = name
18
Dob(Date dob) {
17
;
19
		this.dob = dob;
18
	}
20
	}
19
	public String getOrg() {
21
	public String getName() {
20
		return org;
22
		return name;
21
	}
23
	}
22
	public void setOrg(String org) {
24
	public void setName(String name) {
23
		this.org = org;
25
		this.name = name;
24
	}
26
	}
25
	public Set getGroups() {
27
	public String getCurrentAddress() {
26
		return groups;
28
		return currentAddress;
27
	}
29
	}
28
	public void setGroups(Set groups) {
30
	public void set
29
		this.groups = group
31
CurrentAddress(String currentAddress) {
30
s
32
		this.currentAddress = currentAddress
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