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 class CustomerId implements Serializable { private String orgName; private String customerName; public CustomerId() { super(); } public CustomerId(String orgName, String custName) { this.orgName = orgName; this.customerName = custName; } public String getCustomerName() { return customerName; } public void setCustomerName(String customerName) { this.customerName = customerName; } public String getOrgName() { return orgName; } public void setOrgName(String orgName) { this.orgName = orgName
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/idclass/CustomerId.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class MonetoryAmount implements Serializable {
1
public class CustomerId implements Serializable {
2
	
2
	private BigDecimal amount;
3
	private 
3
	private Currency currency
4
String orgName;
5
	private String customerName;
6
	public CustomerId() {
4
;
7
		super();
5
	
8
	}
6
	public MonetoryAmount(BigDecimal amount, Currency currency) {
9
	public 
7
		this.amount = amount;
8
		this.currency = currency
10
CustomerId(String orgName, String custName) {
11
		this.orgName = orgName;
9
;
12
		this.customerName = custName;
10
	}
13
	}
11
	
12
	public BigDecimal getAmount() {
14
	public String getCustomerName() {
13
		return amount;
15
		return customerName;
14
	}
16
	}
15
	
16
	public void setAmount(BigDecimal amount) {
17
	public void set
17
		this.amount = amount
18
CustomerName(String customerName) {
18
;
19
		this.customerName = customerName;
19
	}
20
	}
20
	public Currency getCurrency() {
21
	public String getOrgName() {
21
		return currency;
22
		return orgName;
22
	}
23
	}
23
	public void setCurrency(Currency currency) {
24
	public void setOrgName(String orgName) {
24
		this.currency = currency
25
		this.orgName = orgName
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