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;
public class Person { private Long id; private String name; private BankAccount bankAccount; /** * @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 BankAccount getBankAccount() { return bankAccount; } public void setBankAccount(BankAccount bankAccount) { this.bankAccount = bankAccount;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/extendshbm/Employee.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/joined/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Employee extends Person {
1
public class Person {
2
	private String title;
2
	private 
3
	private BigDecimal salary;
4
	private Employee manager;
3
Long id;
4
	private String name;
5
	private BankAccount bankAccount;
6

5
	/**
7
	/**
6
	 * @return Returns the title.
8
	 * @return Returns the id.
7
	 */
9
	 */
8
	public String getTitle() {
10
	public Long getId() {
9
		return title;
11
		return id;
10
	}
12
	}
11
	/**
13
	/**
12
	 * @param title The title to set.
14
	 * @param id The id to set.
13
	 */
15
	 */
14
	public void setTitle(String title) {
16
	public void setId(Long id) {
15
		this.title = title;
17
		this.id = id;
16
	}
18
	}
17
	/**
19
	/**
18
	 * @return Returns the manager.
20
	 * @return Returns the name.
19
	 */
21
	 */
20
	public Employee getManager() {
22
	public String getName() {
21
		return manager;
23
		return name;
22
	}
24
	}
23
	/**
25
	/**
24
	 * @param manager The manager to set.
26
	 * @param name The name to set.
25
	 */
27
	 */
26
	public void setManager(Employee manager) {
28
	public void setName(String name) {
27
		this.manager = manager;
29
		this.name = 
28
	}
29
	/**
30
	 * @return Returns the salary.
31
	 */
32
	public BigDecimal getSalary
30
name;
31
	}
33
() {
32
	public BankAccount getBankAccount() {
34
		return salary;
33
		return 
35
	}
36
	/**
37
	 * @param salary The salary to set.
38
	 */
39
	public void setSalary(BigDecimal salary
34
bankAccount;
35
	}
40
) {
36
	public void setBankAccount(BankAccount bankAccount) {
41
		this.salary = salary;
37
		this.bankAccount = bankAccount;
42
	
38
	
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