public class Person { private Long id; private String name; private Object data; 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 Object getData() { return data; } public void setData(Object data) { this.data = data;
public class Employee extends Person { private String title; private BigDecimal salary; private Employee manager; /** * @return Returns the title. */ public String getTitle() { return title; } /** * @param title The title to set. */ public void setTitle(String title) { this.title = title; } /** * @return Returns the manager. */ public Employee getManager() { return manager; } /** * @param manager The manager to set. */ public void setManager(Employee manager) { this.manager = manager; } /** * @return Returns the salary. */ public BigDecimal getSalary() { return salary; } /** * @param salary The salary to set. */ public void setSalary(BigDecimal salary) { this.salary = salary;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/any/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass2/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Employee extends Person {
2
	private Long id;
2
	private 
3
	private String name;
4
	private Object data;
5

3
String title;
4
	private BigDecimal salary;
5
	private Employee manager;
6
	/**
7
	 * @return Returns the title.
8
	 */
6
	public Long getId() {
9
	public String getTitle() {
7
		return id;
10
		return 
8
	}
9

11
title;
12
	}
13
	/**
14
	 * @param title The title to set.
15
	 */
10
	public void setId(Long id) {
16
	public void setTitle(String title) {
11
		this.id = id;
17
		this.
12
	}
13

18
title = title;
19
	}
20
	/**
21
	 * @return Returns the manager.
22
	 */
14
	public String getName() {
23
	public Employee getManager() {
15
		return name;
24
		return 
16
	}
17
	public void setName(String name
25
manager;
26
	}
27
	/**
28
	 * @param manager The manager to set.
29
	 */
18
) {
30
	public void setManager(Employee manager) {
19
		this.name = name;
31
		this.manager = 
20
	}
21
	public Object getData
32
manager;
33
	}
34
	/**
35
	 * @return Returns the salary.
36
	 */
22
() {
37
	public BigDecimal getSalary() {
23
		return data;
38
		return 
24
	}
25
	public void setData(Object data
39
salary;
40
	}
41
	/**
42
	 * @param salary The salary to set.
43
	 */
26
) {
44
	public void setSalary(BigDecimal salary) {
27
		this.data = data;
45
		this.salary = salary;
28
	
46
	
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