public class Product { private String productId; private String description; private BigDecimal price; private int numberAvailable; private int numberOrdered; /** * @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 numberAvailable. */ public int getNumberAvailable() { return numberAvailable; } /** * @param numberAvailable The numberAvailable to set. */ public void setNumberAvailable(int numberAvailable) { this.numberAvailable = numberAvailable; } /** * @return Returns the numberOrdered. */ public int getNumberOrdered() { return numberOrdered; } /** * @param numberOrdered The numberOrdered to set. */ public void setNumberOrdered(int numberOrdered) { this.numberOrdered = numberOrdered; } /** * @return Returns the productId. */ public String getProductId() { return productId; } /** * @param productId The productId to set. */ public void setProductId(String productId) { this.productId = productId; } /** * @return Returns the price. */ public BigDecimal getPrice() { return price; } /** * @param price The price to set. */ public void setPrice(BigDecimal price) { this.price = price;
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/cid/Product.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 Product {
1
public class DataPoint {
2
	private String productId;
2
	private long id;
3
	private String description;
3
	private int sequence;
4
	private BigDecimal price;
4
	private BigDecimal x;
5
	private int numberAvailable;
5
	private BigDecimal y;
6
	private int numberOrdered;
6
	private String description;
7
	/**
7
	/**
8
	 * @return Returns the description.
8
	 * @return Returns the id.
9
	 */
9
	 */
10
	public String getDescription() {
10
	public long getId() {
11
		return description;
11
		return id;
12
	}
12
	}
13
	/**
13
	/**
14
	 * @param description The description to set.
14
	 * @param id The id to set.
15
	 */
15
	 */
16
	public void setDescription(String description) {
16
	public void set
17
		this.description = description
17
Id(long id) {
18
;
18
		this.id = id;
19
	}
19
	}
20
	/**
20
	/**
21
	 * @return Returns the numberAvailable
21
	 * Getter for property 'sequence'.
22
	 *
22
.
23
	 * @return Value for property 'sequence'.
23
	 */
24
	 */
24
	public int getNumberAvailable() {
25
	public int getSequence() {
25
		return numberAvailable;
26
		return sequence;
26
	}
27
	}
27
	/**
28
	/**
28
	 * @param numberAvailable The numberAvailable to set
29
	 * Setter for property 'sequence'.
30
	 *
29
.
31
	 * @param sequence Value to set for property 'sequence'.
30
	 */
32
	 */
31
	public void setNumberAvailable(int numberAvailable) {
33
	public void set
32
		this.numberAvailable = numberAvailabl
34
Sequence(int sequence) {
33
e;
35
		this.sequence = sequence;
34
	}
36
	}
35
	/**
37
	/**
36
	 * @return Returns the numberOrdered.
38
	 * @return Returns the description.
37
	 */
39
	 */
38
	public int getNumberOrdered() {
40
	public String getDescription() {
39
		return numberOrdered;
41
		return description;
40
	}
42
	}
41
	/**
43
	/**
42
	 * @param numberOrdered The numberOrdered to set.
44
	 * @param 
43
	 */
44
	public void setNumberOrdered(int numberOrdered) {
45
		this.numberOrdered = numberOrdered
45
description The description to set.
46
	 */
47
	public void setDescription(String description) {
46
;
48
		this.description = description;
47
	}
49
	}
48
	/**
50
	/**
49
	 * @return Returns the productId.
51
	 * @return Returns the x.
50
	 */
52
	 */
51
	public String getProductId() {
53
	public BigDecimal getX() {
52
		return productId;
54
		return x;
53
	}
55
	}
54
	/**
56
	/**
55
	 * @param productId The productId to set.
57
	 * @param x The x to set.
56
	 */
58
	 */
57
	public void setProductId(String productId) {
59
	public void set
58
		this.productId = productId
60
X(BigDecimal x) {
59
;
61
		this.x = x;
60
	}
62
	}
61
	/**
63
	/**
62
	 * @return Returns the price.
64
	 * @return Returns the y.
63
	 */
65
	 */
64
	public BigDecimal getPrice() {
66
	public BigDecimal getY() {
65
		return price;
67
		return y;
66
	}
68
	}
67
	/**
69
	/**
68
	 * @param price The price to set.
70
	 * @param y The y to set.
69
	 */
71
	 */
70
	public void setPrice(BigDecimal price) {
72
	public void setY(BigDecimal y) {
71
		this.price = price;
73
		this.y = y;
72
	
74
	
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