public class User { private String userName; private String password; private Person person; private Date lastModified; User() {} public User(String id, String pw, Person person) { this.userName = id; this.password = pw; this.person = person; } public Date getLastModified() { return lastModified; } public void setLastModified(Date lastModified) { this.lastModified = lastModified; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName;
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/component/basic/User.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 User {
1
public class User 
2
	private String userName;
2
implements Serializable {
3
	private Long id;
3
	private String password;
4
	private String org;
4
	private Person person;
5
	private 
5
	private Date lastModified;
6
	
6
String name;
7
	private Set groups = new HashSet();
7
User() {}
8
	public User() {
9
	}
10

8
	public User(String id, String pw, Person person) {
11
	public User(String name, String org) {
9
		this.userName = id;
12
		this.
10
		this.password = pw;
11
		this.person = person;
12
	}
13
	public Date getLastModifie
13
org = org;
14
		this.name = name;
15
	}
14
d() {
16
	public Long getId() {
15
		return lastModified;
17
		return id;
16
	}
18
	}
19

17
	public void setLastModified(Date lastModified) {
20
	public void setId(Long id) {
18
		this.lastModified = lastModified;
21
		this.id = id;
19
	}
22
	}
23

20
	public String getPassword() {
24
	public String getName() {
21
		return password;
25
		return 
22
	}
26
name;
27
	}
28

23
	public void setPassword(String password) {
29
	public void setName(String name) {
24
		this.password = password;
30
		this.
25
	}
31
name = name;
32
	}
33

26
	public Person getPerson() {
34
	public String getOrg() {
27
		return person;
35
		return 
28
	}
36
org;
37
	}
38

29
	public void setPerson(Person person) {
39
	public void setOrg(String org) {
30
		this.person = person;
40
		this.
31
	}
32
	public String getUserName
41
org = org;
42
	}
33
() {
43
	public Set getGroups() {
34
		return userName;
44
		return 
35
	}
45
groups;
46
	}
47

36
	public void setUserName(String userName) {
48
	public void setGroups(Set groups) {
37
		this.userName = userName;
49
		this.groups = groups;
38
	
50
	
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