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 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/legacy/Y.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 Y {
1
public class Person {
2

2
	private Long id;
3
	private Long id;
3
	private String x;
4
	private String name;
4
	private X theX;
5
	private BankAccount bankAccount;
6

5
	/**
7
	/**
6
	 * Returns the id.
8
	 * @return Returns the id.
7
	 * @return Long
9

8
	 */
10
	 */
9
	public Long getId() {
11
	public Long getId() {
10
		return id;
12
		return id;
11
	}
13
	}
14

12
	/**
15
	/**
13
	 * Returns the x.
16
	 * 
14
	 * @return String
17
@param id The id to set.
15
	 */
18
	 */
16
	public String getX() {
19
	public void setId(Long id) {
17
		return x;
20
		this.id = id;
18
	}
21
	}
22

19
	/**
23
	/**
20
	 * Sets the id.
24
	 * 
21
	 * @param id The id to set
25
@return Returns the name.
22
	 */
26
	 */
23
	public void setId(Long id) {
27
	public String getName() {
24
		this.id = id;
28
		return name;
25
	}
29
	}
30

26
	/**
31
	/**
27
	 * Sets the x.
32

28
	 * @param x The x to set
33
	 * @param name The name to set.
29
	 */
34
	 */
30
	public void setX(String x) {
35
	public void setName(String name) {
31
		this.x = x;
36
		this.
32
	}
33
	/**
34
	 * @return
35
	 */
36
	public X getTheX
37
name = name;
38
	}
37
() {
39
	public BankAccount getBankAccount() {
38
		return theX;
40
		return 
39
	}
40
	/**
41
	 * @param x
42
	 */
43
	public void setTheX(X x
41
bankAccount;
42
	}
44
) {
43
	public void setBankAccount(BankAccount bankAccount) {
45
		theX = x
44
		this.bankAccount = bankAccount
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