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 Detail implements Serializable { private Long id; private Master master; private int version; private String details; private boolean currentVersion; public boolean isCurrentVersion() { return currentVersion; } public void setCurrentVersion(boolean currentVersion) { this.currentVersion = currentVersion; } public String getDetails() { return details; } public void setDetails(String details) { this.details = details; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Master getMaster() { return master; } public void setMaster(Master master) { this.master = master; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version
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/formulajoin/Detail.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Product {
1
public class 
2
	private String productId;
3
	private String description;
4
	private BigDecimal price
2
Detail implements Serializable {
3
	private Long id;
4
	private Master master;
5
;
5
	private int version;
6
	private int numberAvailable;
6
	private 
7
	private int numberOrdered;
8
	/**
9
	 * @return Returns the descript
7
String details;
10
ion.
8
	private boolean currentVersion;
11
	 */
9
	
12
	public String getDescription() {
10
	public 
13
		return description;
14
	}
15
	/**
16
	 * @param description The description to set.
17
	 */
18
	public void setDescription(String descript
11
boolean isCurrentVersion() {
12
		return currentVersion;
13
	}
19
ion) {
14
	public void setCurrentVersion(boolean currentVersion) {
20
		this.description = description;
15
		this.
21
	}
22
	/**
23
	 * @return Returns the numberAvailable.
24
	 */
16
currentVersion = currentVersion;
17
	}
25
	public int getNumberAvailable() {
18
	public String get
26
		return numberAvailable;
27
	}
28
	/**
29
	 * @param numberAvailable The numberAvailable to set.
30
	 */
31
	public void setNumberAvailable(int numberAvailable) {
32
		this.numberAvailable = numberAvailable;
33
	}
34
	/**
35
	 * @return Returns the numberOrdered.
36
	 */
37
	public int getNumberOrdered() {
38
		return numberOrdered;
39
	}
40
	/**
41
	 * @param numberOrdered The numberOrdered to set.
42
	 */
43
	public void setNumberOrdered(int numberOrdered) {
44
		this.numberOrdered = numberOrdered;
45
	}
46
	/**
47
	 * @return Returns the productId.
48
	 */
49
	public String getProductId() {
50
		return productId;
51
	}
52
	/**
53
	 * @param productId The productId to set.
54
	 */
55
	public void setProductId(String productId) {
56
		this.productId = productId;
57
	}
58
	/**
59
	 * @return Returns the price.
60
	 */
61
	public BigDecimal getPrice() {
62
		return price;
63
	}
64
	/**
65
	 * @param price The price to set.
66
	 */
67
	public void setPrice(BigDecimal price
19
Details() {
20
		return details;
21
	}
22
	public void setDetails(String details) {
23
		this.details = details;
24
	}
25
	public Long getId() {
26
		return id;
27
	}
28
	public void setId(Long id) {
29
		this.id = id;
30
	}
31
	public Master getMaster() {
32
		return master;
33
	}
34
	public void setMaster(Master master) {
35
		this.master = master;
36
	}
37
	public int getVersion() {
38
		return version;
39
	}
68
) {
40
	public void setVersion(int version) {
69
		this.price = price
41
		this.version = version
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