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;
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/manytomany/Group.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 Group implements Serializable {
1
public class User implements Serializable {
2

2
	private String org;
3
	private Long id;
3
	private String name;
4
	private String org;
4
	private String description;
5
	private String 
6
name;
5
	private Set users = new HashSet();
7
	private Set groups = new HashSet();
6
	
8
	public User() {
9
	}
10

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

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

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

19
	public String getOrg() {
27
	public String getName() {
20
		return org;
28
		return 
21
	}
29
name;
30
	}
31

22
	public void setOrg(String org) {
32
	public void setName(String name) {
23
		this.org = org;
33
		this.
24
	}
34
name = name;
35
	}
36

25
	public Set getUsers() {
37
	public String getOrg() {
26
		return users;
38
		return 
27
	}
39
org;
40
	}
41

28
	public void setUsers(Set users) {
42
	public void setOrg(String org) {
29
		this.users = users;
43
		this.
30
	}
31
	public String getDescription
44
org = org;
45
	}
32
() {
46
	public Set getGroups() {
33
		return description;
47
		return 
34
	}
48
groups;
49
	}
50

35
	public void setDescription(String description) {
51
	public void setGroups(Set groups) {
36
		this.description = description;
52
		this.groups = groups;
37
	
53
	
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