public class MonetoryAmount implements Serializable { private BigDecimal amount; private Currency currency; public MonetoryAmount(BigDecimal amount, Currency currency) { this.amount = amount; this.currency = currency; } public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Currency getCurrency() { return currency; } public void setCurrency(Currency currency) { this.currency = currency;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cut/MonetoryAmount.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/KeyManyToOneEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MonetoryAmount implements Serializable {
1
public static class Id implements Serializable {
2
	private BigDecimal amount;
2
		private KeyManyToOneKeyEntity key1;
3
	private Currency currency;
3
		private String key2;
4
	
4
	
5
	public MonetoryAmount(BigDecimal amount, Currency currency) {
5
	public Id(KeyManyToOneKeyEntity key1, String key2) {
6
		this.amount = amount;
6
			this.key1 = key1;
7
		this.currency = currency;
7
			this.
8
	}
8
key2 = key2;
9
		}
9
	
10
	
10
	public BigDecimal getAmount() {
11
	public KeyManyToOneKeyEntity getKey1() {
11
		return amount;
12
			return key1;
12
	}
13
		}
13
	
14
	public void setAmount(BigDecimal amount) {
14
		public void setKey1(KeyManyToOneKeyEntity key1) {
15
		this.amount = amount;
15
			this.key1 = key1;
16
	}
16
		}
17
	public Currency getCurrency() {
17
		public String getKey2() {
18
		return currency;
18
			return key2;
19
	}
19
		}
20
	public void setCurrency(Currency currency) {
20
		public void setKey2(String key2) {
21
		this.currency = currency;
21
			this.key2 = key2;
22
	
22
		
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