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 String personId; /** * @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 String getPersonId() { return personId; } public void setPersonId(String personId) { this.personId = personId;
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/union/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
String personId;
5
	/**
9
	/**
6
	 * @return Returns the parent.
10
	 * @return Returns the id.
7
	 */
11
	 */
12

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

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

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

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

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

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

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

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

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

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

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

33
		return name;
50
		return 
34
	}
35
	/**
36
	 * @param name The name to set.
37
	 */
51
personId;
52
	}
53

38
	public void setName(String name) {
54
	public void setPersonId(String personId) {
55

39
		this.name = name;
56
		this.
57
personId = personId;
58
	
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