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 Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/discriminator/Employee.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Y.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Employee extends Person {
1
public class Y {
2
	private String title;
2
	private 
3
	private BigDecimal salary;
4
	private Employee manager
3
Long id;
4
	private String x;
5
;
5
	private X theX;
6
	/**
6
	/**
7
	 * @return Returns the title.
7
	 * Returns the id.
8
	 * @return Long
8
	 */
9
	 */
9
	public String getTitle() {
10
	public Long getId() {
10
		return title;
11
		return id;
11
	}
12
	}
12
	/**
13
	/**
13
	 * @param title The title to set.
14
	 * 
14
	 */
15
	public void setTitle(
15
Returns the x.
16
	 * @return String
17
	 */
16
String title) {
18
	public String getX() {
17
		this.title = title;
19
		return x;
18
	}
20
	}
19
	/**
21
	/**
20
	 * @return Returns the manager.
22
	 * 
21
	 */
22
	public Employee getManager() {
23
		return manager
23
Sets the id.
24
	 * @param id The id to set
25
	 */
26
	public void setId(Long id) {
24
;
27
		this.id = id;
25
	}
28
	}
26
	/**
29
	/**
27
	 * @param manager The manager
30
	 * Sets the x.
28
 to set.
31
	 * @param x The x to set
29
	 */
32
	 */
30
	public void setManager(Employee manager) {
33
	public void set
31
		this.manager = manager
34
X(String x) {
32
;
35
		this.x = x;
33
	}
36
	}
34
	/**
37
	/**
35
	 * @return Returns the salary.
38
	 * @return
36
	 */
37
	public BigDecimal getSalary
39
	 */
38
() {
40
	public X getTheX() {
39
		return salary;
41
		return theX;
40
	}
42
	}
41
	/**
43
	/**
42
	 * @param salary The salary to set.
44
	 * @param 
43
	 */
44
	public void setSalary(BigDecimal salary) {
45
		this.salary = salary
45
x
46
	 */
47
	public void setTheX(X x) {
46
;
48
		theX = x;
47
	
49
	
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