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 
12
		}
13
code;
14
	}
13
	
15
	
14
	public void setKey1(KeyManyToOneKeyEntity key1) {
16
	public void setCode(String code) {
15
			this.key1 = key1;
17
		this.code = code;
16
		}
18
	}
19
	
17
		public String getKey2() {
20
	public Product getProduct() {
18
			return key2;
21
		return product;
19
		}
22
	}
20
	
23
	
21
	public void setKey2(String key2) {
24
	public void setProduct(Product product) {
22
			this.key2 = key2;
25
		this.product = product;
23
		
26
	
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