public static class Id implements Serializable { private KeyManyToOneKeyEntity key1; private String key2; public Id(KeyManyToOneKeyEntity key1, String key2) { this.key1 = key1; this.key2 = key2; } public KeyManyToOneKeyEntity getKey1() { return key1; } public void setKey1(KeyManyToOneKeyEntity key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2
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/hql/KeyManyToOneEntity.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 static class Id implements Serializable {
1
public class Item {
2
	
3
	private KeyManyToOneKeyEntity key1;
2
	private String code;
4
		private String key2;
3
	private Product product;
4
	
5
		public Id(KeyManyToOneKeyEntity key1, String key2
5
	
6
	Item() {}
6
) {
7
	public Item(String code, Product p) {
7
			this.key1 = key1;
8
		this.code = code;
8
			this.key2 = key2;
9
		this.product = p;
9
		}
10
	}
10
		public KeyManyToOneKeyEntity getKey1() {
11
	public String getCode() {
11
			return key1;
12
		return code;
12
		}
13
	}
13
	
14
	
14
	public void setKey1(KeyManyToOneKeyEntity key1) {
15
	public void setCode(String code) {
15
			this.key1 = key1;
16
		this.code = code;
16
		}
17
	}
17
	
18
	
18
	public String getKey2() {
19
	public Product getProduct() {
19
			return key2;
20
		return product;
20
		}
21
	}
21
	
22
	
22
	public void setKey2(String key2) {
23
	public void setProduct(Product product) {
23
			this.key2 = key2
24
		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