public class Part implements Serializable { private String name; private String description; public Part() { } public Part(String name) { this.name = name; } public Part(String name, String description) { this.name = name; this.description = description; } public String getName() { return name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description
public class Item { private String code; private Product product; Item() {} public Item(String code, Product p) { this.code = code; this.product = p; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public Product getProduct() { return product; } public void setProduct(Product product) { this.product = product
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/collection/backref/map/compkey/Part.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/mapcompelem/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Part implements Serializable {
1
public class Item {
2
	private String name;
2
	private String code;
3
	private String description;
3
	private 
4
	public Part() {
5
	}
6
	public Part(String name) {
7
		this.name = name;
8
	}
4
Product product;
5
	
6
	
7
	Item() {}
9
	public Part(String name, String description) {
8
	public Item(String code, Product p) {
10
		this.name = name;
9
		this.code = code;
11
		this.description = description;
10
		this.product = p;
12
	}
11
	}
13
	public String getName() {
12
	public String getCode() {
14
		return name;
13
		return code;
15
	}
14
	}
15
	
16
	public String getDescription
16
	public void setCode(String code) {
17
		this.code = code;
18
	}
19
	
17
() {
20
	public Product getProduct() {
18
		return description;
21
		return product;
19
	}
22
	}
23
	
20
	public void setDescription(String description) {
24
	public void set
21
		this.description = description
25
Product(Product product) {
26
		this.product = product
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