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 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;
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/legacy/Parent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Product {
1
public class Parent {
2
	private String productId;
2
	private long id;
3
	private String description;
3
	private 
4
	private BigDecimal price;
5
	private int numberAvailable;
6
	private int numberOrdered;
7
	/**
8
	 * @return Returns the description.
9
	 */
4
int count;
5
	private Child child;
6
	private Object any;
7
	private int x;
8
	
10
	public String getDescription() {
9
	public int getX() {
11
		return description;
10
		return 
12
	}
13
	/**
14
	 * @param description The description to set.
15
	 */
16
	public void setDescription(String description) {
17
		this.description = description;
18
	}
19
	/**
20
	 * @return Returns the numberAvailable.
21
	 */
11
x;
12
	}
13
	public void setX(int x) {
14
		this.x = x;
15
	}
16
	
22
	public int getNumberAvailable() {
17
	public int get
23
		return numberAvailable;
24
	}
25
	/**
26
	 * @param numberAvailable The numberAvailable to set.
27
	 */
28
	public void setNumberAvailable(int numberAvailable) {
29
		this.numberAvailable = numberAvailable;
30
	}
31
	/**
32
	 * @return Returns the numberOrdered.
33
	 */
34
	public int getNumberOrdered() {
35
		return numberOrdered;
36
	}
37
	/**
38
	 * @param numberOrdered The numberOrdered to set.
39
	 */
40
	public void setNumberOrdered(int numberOrdered) {
41
		this.numberOrdered = numberOrdered;
42
	}
43
	/**
44
	 * @return Returns the productId.
45
	 */
46
	public String getProductI
18
Count() {
19
		return count;
20
	}
21
	
22
	
23
	public long getId() {
24
		return id;
25
	}
26
	
27
	
28
	public void setCount(int count) {
29
		this.count = count;
30
	}
31
	
32
	
33
	public void setId(long id) {
34
		this.id = id;
35
	}
36
	
37
	
47
d() {
38
	public Child getChild() {
48
		return productId;
39
		return 
49
	}
50
	/**
51
	 * @param productId The productId to set.
52
	 */
53
	public void setProductId(String productId) {
54
		this.productId = productId;
55
	}
56
	/**
57
	 * @return Returns the price.
58
	 */
59
	public BigDecimal getPrice() {
60
		return price;
61
	}
62
	/**
63
	 * @param price The price to set.
64
	 */
65
	public void setPrice(BigDecimal price) {
66
		this.price = price
40
child;
41
	}
42
	
43
	
44
	public void setChild(Child child) {
45
		this.child = child;
46
	}
47
	
48
	public Object getAny() {
49
		return any;
50
	}
51
	public void setAny(Object any) {
67
;
52
		this.any = any;
68
	
53
	
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