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