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 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;
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/cut/MonetoryAmount.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Part implements Serializable {
1
public class MonetoryAmount implements Serializable {
2
	private String name;
2
	private 
3
	private String description
3
BigDecimal amount;
4
;
4
	private Currency currency;
5
	
5
	public Part() {
6
	public 
6
	}
7
	public Part(String name) {
8
		this.name = name
7
MonetoryAmount(BigDecimal amount, Currency currency) {
8
		this.amount = amount;
9
;
9
		this.currency = currency;
10
	}
10
	}
11
	
11
	public Part(String name, String description) {
12
	public 
12
		this.name = name;
13
		this.description = description
13
BigDecimal getAmount() {
14
;
14
		return amount;
15
	}
15
	}
16
	
16
	public String getName() {
17
	public 
17
		return name;
18
	}
19
	public String getDescription
18
void setAmount(BigDecimal amount) {
19
		this.amount = amount;
20
	}
20
() {
21
	public Currency getCurrency() {
21
		return description;
22
		return currency;
22
	}
23
	}
23
	public void setDescription(String description) {
24
	public void set
24
		this.description = description
25
Currency(Currency currency) {
25
;
26
		this.currency = currency;
26
	
27
	
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