public class Parent { private long id; private int count; private Child child; private Object any; private int x; public int getX() { return x; } public void setX(int x) { this.x = x; } public int getCount() { return count; } public long getId() { return id; } public void setCount(int count) { this.count = count; } public void setId(long id) { this.id = id; } public Child getChild() { return child; } public void setChild(Child child) { this.child = child; } public Object getAny() { return any; } public void setAny(Object any) { this.any = any;
public class DataPoint { private long id; private int sequence; private BigDecimal x; private BigDecimal y; private String description; /** * @return Returns the id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * Getter for property 'sequence'. * * @return Value for property 'sequence'. */ public int getSequence() { return sequence; } /** * Setter for property 'sequence'. * * @param sequence Value to set for property 'sequence'. */ public void setSequence(int sequence) { this.sequence = sequence; } /** * @return Returns the description. */ public String getDescription() { return description; } /** * @param description The description to set. */ public void setDescription(String description) { this.description = description; } /** * @return Returns the x. */ public BigDecimal getX() { return x; } /** * @param x The x to set. */ public void setX(BigDecimal x) { this.x = x; } /** * @return Returns the y. */ public BigDecimal getY() { return y; } /** * @param y The y to set. */ public void setY(BigDecimal y) { this.y = y;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Parent.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/pagination/DataPoint.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Parent {
1
public class DataPoint {
2
	private long id;
2
	private long id;
3
	private int count;
3
	private int sequence;
4
	private Child child;
4
	private 
5
	private Object any;
6
	private int x;
7
	
5
BigDecimal x;
6
	private BigDecimal y;
7
	private String description;
8
	/**
9
	 * @return Returns the id.
10
	 */
8
	public int getX() {
11
	public long getId() {
9
		return x;
12
		return id;
10
	}
13
	}
14
	/**
15
	 * @param id The id to set.
16
	 */
11
	public void setX(int x) {
17
	public void setId(long id) {
12
		this.x = x;
18
		this.id = id;
13
	}
19
	}
14
	
20
	/**
21
	 * Getter for property 'sequence'.
22
	 *
23
	 * @return Value for property 'sequence'.
24
	 */
15
	public int getCount() {
25
	public int getSequence() {
16
		return count;
26
		return 
17
	}
18
	
19
	
20
	public long getId() {
21
		return id;
22
	}
23
	
24
	
27
sequence;
28
	}
29
	/**
30
	 * Setter for property 'sequence'.
31
	 *
32
	 * @param sequence Value to set for property 'sequence'.
33
	 */
25
	public void setCount(int count) {
34
	public void set
26
		this.count = count;
27
	}
28
	
29
	
30
	public void setId(long id) {
31
		this.id = id
35
Sequence(int sequence) {
36
		this.sequence = sequence;
37
	}
38
	/**
39
	 * @return Returns the description.
40
	 */
41
	public String getDescription() {
42
		return description;
43
	}
44
	/**
45
	 * @param description The description to set.
46
	 */
47
	public void setDescription(String description) {
32
;
48
		this.description = description;
33
	}
49
	}
34
	
50
	
35
	
36
	public Child getChild
51
/**
52
	 * @return Returns the x.
53
	 */
37
() {
54
	public BigDecimal getX() {
38
		return child;
55
		return 
39
	}
40
	
41
	
42
	public void setChild(Child child) {
43
		this.child = child;
44
	}
45
	
46
	public Object
56
x;
57
	}
58
	/**
59
	 * @param x The x to set.
60
	 */
61
	public void setX(BigDecimal x) {
62
		this.x = x;
63
	}
64
	/**
65
	 * @return Returns the y.
66
	 */
47
 getAny() {
67
	public BigDecimal getY() {
48
		return any;
68
		return y;
49
	}
69
	}
70
	/**
71
	 * @param y The y to set.
72
	 */
50
	public void setAny(Object any) {
73
	public void setY(BigDecimal y) {
51
		this.any = any;
74
		this.y = y;
52
	
75
	
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