public abstract class Item { private Long id; private String name; private Folder parent; /** * @return Returns the parent. */ public Folder getParent() { return parent; } /** * @param parent The parent to set. */ public void setParent(Folder parent) { this.parent = parent; } /** * @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 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/mixed/Item.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 abstract class Item {
1
public class Person {
2

2
	private Long id;
3
	private Long id;
4

3
	private String name;
5
	private String name;
6

4
	private Folder parent;
7
	private 
8
BankAccount bankAccount;
9

5
	/**
10
	/**
6
	 * @return Returns the parent.
11
	 * @return Returns the id.
7
	 */
12
	 */
13

8
	public Folder getParent() {
14
	public Long getId() {
15

9
		return parent;
16
		return 
17
id;
10
	}
18
	}
19

11
	/**
20
	/**
12
	 * @param parent The parent to set.
21
	 * @param id The id to set.
13
	 */
22
	 */
23

14
	public void setParent(Folder parent) {
24
	public void setId(Long id) {
25

15
		this.parent = parent;
26
		this.
27
id = id;
16
	}
28
	}
29

17
	/**
30
	/**
18
	 * @return Returns the id.
31
	 * @return Returns the name.
19
	 */
32
	 */
33

20
	public Long getId() {
34
	public String getName() {
35

21
		return id;
36
		return 
37
name;
22
	}
38
	}
39

23
	/**
40
	/**
24
	 * @param id The id to set.
41
	 * @param name The name to set.
25
	 */
42
	 */
43

26
	public void setId(Long id) {
44
	public void setName(String name) {
45

27
		this.id = id;
46
		this.
28
	}
29
	/**
30
	 * @return Returns the name.
31
	 */
32
	public String getName
47
name = name;
48
	}
33
() {
49
	public BankAccount getBankAccount() {
50

34
		return name;
51
		return 
35
	}
36
	/**
37
	 * @param name The name to set.
38
	 */
39
	public void setName(String name
52
bankAccount;
53
	}
40
) {
54
	public void setBankAccount(BankAccount bankAccount) {
55

41
		this.name = name
56
		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