public class User { private String name; private String password; private Map session = new HashMap(); private Set documents = new HashSet(); User() {} public User(String n, String pw) { name=n; password = pw; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Map getSession() { return session; } public void setSession(Map session) { this.session = session; } public Set getDocuments() { return documents; } public void setDocuments(Set documents) { this.documents = documents;
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/extralazy/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 name;
2
implements Serializable {
3
	private Long id;
3
	private String password;
4
	private String org;
4
	private Map session = new HashMap();
5
	private String name;
5
	private Set documents = new HashSet();
6
	private Set groups = new HashSet();
6
	
7
User() {}
7
	public User() {
8
	}
9

8
	public User(String n, String pw) {
10
	public User(String name, String org) {
9
		name=n;
11
		
10
		password = pw;
11
	}
12
this.org = org;
13
		this.name = name;
14
	}
15

12
	public String getName() {
16
	public Long getId() {
13
		return name;
17
		return 
14
	}
18
id;
19
	}
20

15
	public void setName(String name) {
21
	public void setId(Long id) {
16
		this.name = name;
22
		this.
17
	}
23
id = id;
24
	}
25

18
	public String getPassword() {
26
	public String getName() {
19
		return password;
27
		return 
20
	}
28
name;
29
	}
30

21
	public void setPassword(String password) {
31
	public void setName(String name) {
22
		this.password = password;
32
		this.
23
	}
24
	public Map getSession
33
name = name;
34
	}
25
() {
35
	public String getOrg() {
26
		return session;
36
		return 
27
	}
37
org;
38
	}
39

28
	public void setSession(Map session) {
40
	public void setOrg(String org) {
29
		this.session = session;
41
		this.
30
	}
42
org = org;
43
	}
44

31
	public Set getDocuments() {
45
	public Set getGroups() {
32
		return documents;
46
		return groups;
33
	}
47
	}
48

34
	public void setDocuments(Set documents) {
49
	public void setGroups(Set groups) {
35
		this.documents = documents;
50
		this.groups = groups;
36
	
51
	
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