public class Parent { private Long id; private String name; private Collection children = new HashSet(); Parent() {} public Parent(String name) { this.name = name; } /** * @return Returns the children. */ public Collection getChildren() { return children; } /** * @param children The children to set. */ public void setChildren(Collection children) { this.children = children; } /** * @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
public class Person { private String name; private String employeeId; private Employee employee; public Person() {} public Person(String name) { this.name = name; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getEmployeeId() { return employeeId; } public void setEmployeeId(String employeeId) { this.employeeId = employeeId; } public String getName() { return name; } 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/compositeelement/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unconstrained/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class Person {
2
	
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private String employeeId;
4
	private Collection children = new HashSet();
5
	private 
5
	Parent
6
Employee employee;
6
() {}
7
	public Person() {}
7
	public Parent(String name) {
8
	public Person(String name) {
8
		this.name = name;
9
		this.name = name;
9
	}
10
	}
10
	/**
11
	
11
	 * @return Returns the children.
12
	 */
13
	public Collection getChildren() {
14
		return children;
15
	}
16
	/**
17
	 * @param children The children to set.
18
	 */
19
	public void setChildren(Collection children) {
20
		this.children = children;
21
	}
22
	/**
23
	 * @return Returns the id.
24
	 */
12
	public Employee getEmployee() {
13
		return employee;
14
	}
15
	
16
	public void setEmployee(Employee employee) {
17
		this.employee = employee;
18
	}
19
	
25
	public Long getId() {
20
	public String getEmployeeId() {
26
		return id;
21
		return 
27
	}
28
	/**
29
	 * @param id The id to set.
30
	 */
31
	public void setId(Long id) {
32
		this.id = id;
33
	}
34
	/**
35
	 * @return Returns the name.
36
	 */
22
employeeId;
23
	}
24
	
25
	public void setEmployeeId(String employeeId) {
26
		this.employeeId = employeeId;
27
	}
28
	
37
	public String getName() {
29
	public String getName() {
38
		return name;
30
		return name;
39
	}
31
	}
40
	/**
32
	
41
	 * @param name The name to set.
42
	 */
43
	public void setName(String name) {
33
	public void setName(String name) {
44
		this.name = name
34
		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