public class Group { private Long id; private List persons = new ArrayList(); private String name; public Group() { } public Group(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public List getPersons() { return persons; } public void setPersons(List persons) { this.persons = persons; } public String getName() { return name; } public void setName(String name) { this.name = name
public class Organization { private long id; private String name; private Collection employments; public Organization(String name) { this.name = name; employments = new HashSet(); } public Organization() {} /** * @return Returns the employments. */ public Collection getEmployments() { return employments; } /** * @param employments The employments to set. */ public void setEmployments(Collection employments) { this.employments = employments; } /** * @return Returns the id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Group.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Organization.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Group {
1
public class Organization {
2
	private Long id;
2
	private long id;
3
	private List persons = new ArrayList();
3
	private 
4
	private String name;
5
	public Group() {
6
	}
7
	public Group
4
String name;
5
	private Collection employments;
8
(String name) {
6
	public Organization(String name) {
9
		this.name = name;
7
		this.name = name;
10
	}
8
	
11
	public Long getId() {
12
		return id;
13
	}
14
	public void setId(Long id) {
15
		this.id = id;
16
	}
17
	public List getPersons() {
18
		return persons;
19
	}
20
	public void setPersons(List persons) {
21
		this.persons = persons;
22
	}
9
	employments = new HashSet();
10
	}
11
	public Organization() {}
12
	/**
13
	 * @return Returns the employments.
14
	 */
15
	public Collection getEmployments() {
16
		return employments;
17
	}
18
	/**
19
	 * @param employments The employments to set.
20
	 */
21
	public void setEmployments(Collection employments) {
22
		this.employments = employments;
23
	}
24
	/**
25
	 * @return Returns the id.
26
	 */
27
	public long getId() {
28
		return id;
29
	}
30
	/**
31
	 * @param id The id to set.
32
	 */
33
	public void setId(long id) {
34
		this.id = id;
35
	}
36
	/**
37
	 * @return Returns the name.
38
	 */
23
	public String getName() {
39
	public String getName() {
24
		return name;
40
		return name;
25
	}
41
	}
42
	/**
43
	 * @param name The name to set.
44
	 */
26
	public void setName(String name) {
45
	public void setName(String name) {
27
		this.name = name
46
		this.name = name
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