public class SubMulti extends Multi { private float amount; private SubMulti parent; private List children; private List moreChildren; /** * Returns the amount. * @return float */ public float getAmount() { return amount; } /** * Sets the amount. * @param amount The amount to set */ public void setAmount(float amount) { this.amount = amount; } /** * Returns the childen. * @return List */ public List getChildren() { return children; } /** * Returns the parent. * @return SubMulti */ public SubMulti getParent() { return parent; } /** * Sets the childen. * @param childen The childen to set */ public void setChildren(List children) { this.children = children; } /** * Sets the parent. * @param parent The parent to set */ public void setParent(SubMulti parent) { this.parent = parent; } /** * Returns the moreChildren. * @return List */ public List getMoreChildren() { return moreChildren; } /** * Sets the moreChildren. * @param moreChildren The moreChildren to set */ public void setMoreChildren(List moreChildren) { this.moreChildren = moreChildren;
public class DataPoint { private long id; private BigDecimal x; private BigDecimal y; private String description; /** * @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 id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * @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/SubMulti.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/readonly/DataPoint.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class SubMulti extends Multi {
1
public class DataPoint {
2
	private float amount;
2
	private long id;
3
	private SubMulti parent;
3
	private 
4
	private List children;
5
	private List moreChildre
4
BigDecimal x;
5
	private BigDecimal y;
6
n;
6
	private String description;
7
	/**
7
	/**
8
	 * Returns the amount.
8
	 * @return Returns the 
9
	 * @return float
10
	 */
11
	public float getAmount
9
description.
10
	 */
12
() {
11
	public String getDescription() {
13
		return amount;
12
		return description;
14
	}
13
	}
15
	
14
	
16
	/**
15
/**
17
	 * Sets the amount.
16
	 * 
18
	 * @param amount The amount to set
17
@param description The description to set.
19
	 */
18
	 */
20
	public void setAmount(float amount) {
19
	public void set
21
		this.amount = amount;
22
	}
23
	
24
	/**
25
	 * Returns the childen.
26
	 * @return List
27
	 */
28
	public List getChildren() {
29
		return childre
20
Description(String description) {
30
n;
21
		this.description = description;
31
	}
22
	}
32
	
23
	
33
	/**
24
/**
34
	 * Returns the parent.
25
	 * @return
35
	 * @return SubMulti
36
	 */
37
	public SubMulti getParent
26
 Returns the id.
27
	 */
38
() {
28
	public long getId() {
39
		return parent;
29
		return id;
40
	}
30
	}
41
	
31
	
42
	/**
32
/**
43
	 * Sets the childen.
33
	 * 
44
	 * @param childen The childen to set
34
@param id The id to set.
45
	 */
35
	 */
46
	public void setChildren(List children) {
36
	public void setId(long id) {
47
		this.children = children;
37
		this.id = id;
48
	}
38
	}
49
	
39
	
50
	/**
40
/**
51
	 * Sets the parent.
41
	 * 
52
	 * @param parent The parent
42
@return Returns the x.
43
	 */
44
	public BigDecimal getX() {
45
		return x;
46
	}
47
	/**
53
 to set
48
	 * @param x The x to set.
54
	 */
49
	 */
55
	public void setParent(SubMulti parent) {
50
	public void set
56
		this.parent = parent
51
X(BigDecimal x) {
57
;
52
		this.x = x;
58
	}
53
	}
59
	
54
	
60
	/**
55
/**
61
	 * Returns the moreChildren.
56
	 * @return Returns the 
62
	 * @return List
63
	 */
64
	public List getMoreChildren
57
y.
58
	 */
65
() {
59
	public BigDecimal getY() {
66
		return moreChildren;
60
		return y;
67
	}
61
	}
68
	/**
62
	/**
69
	 * Sets the moreChildren.
63
	 * 
70
	 * @param moreChildren The moreChildren to set
64
@param y The y to set.
71
	 */
65
	 */
72
	public void setMoreChildren(List moreChildren) {
66
	public void set
73
		this.moreChildren = moreChildren
67
Y(BigDecimal y) {
74
;
68
		this.y = y;
75
	
69
	
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