public class ParentInfo { private Long id; private Parent owner; private String info; public ParentInfo() { } public ParentInfo(String info) { this.info = info; } public Long getId() { return id; } public Parent getOwner() { return owner; } public void setOwner(Parent owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info
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/jpa/cascade/ParentInfo.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 ParentInfo {
1
public class Employee extends Person {
2
	private Long id;
2
	private 
3
	private Parent own
3
String title;
4
	private BigDecimal salary;
4
er;
5
	private Employee manager;
5
	private String info;
6
	
6
	public ParentInfo() {
7
	}
8
	public ParentInfo
7
/**
8
	 * @return Returns the title.
9
	 */
10
	public String getTitle() {
11
		return title;
12
	}
13
	/**
14
	 * @param title The title to set.
15
	 */
9
(String info) {
16
	public void setTitle(String title) {
10
		this.info = info;
17
		this.
11
	}
12
	public Long getId() {
13
		return id;
14
	}
15

18
title = title;
19
	}
20
	/**
21
	 * @return Returns the manager.
22
	 */
16
	public Parent getOwner() {
23
	public Employee getManager() {
17
		return owner;
24
		return manager;
18
	}
25
	}
19
	public void setOwner(Parent own
26
	/**
27
	 * @param manager The manager to set.
28
	 */
20
er) {
29
	public void setManager(Employee manager) {
21
		this.owner = owner;
30
		this.manager = manager;
22
	}
31
	}
23
	public String getInfo
32
	/**
33
	 * @return Returns the salary.
34
	 */
24
() {
35
	public BigDecimal getSalary() {
25
		return info;
36
		return 
26
	}
27
	public void setInfo(String info
37
salary;
38
	}
39
	/**
40
	 * @param salary The salary to set.
41
	 */
28
) {
42
	public void setSalary(BigDecimal salary) {
29
		this.info = info
43
		this.salary = salary
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