public class Bid { private Long id; private Auction item; private BigDecimal amount; private boolean successful; private Date datetime; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Auction getItem() { return item; } public void setItem(Auction item) { this.item = item; } public boolean isSuccessful() { return successful; } public void setSuccessful(boolean successful) { this.successful = successful; } public Date getDatetime() { return datetime; } public void setDatetime(Date datetime) { this.datetime = datetime
public class Address { private String street; private String city; private String postalCode; private String country; private StateProvince stateProvince; public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public StateProvince getStateProvince() { return stateProvince; } public void setStateProvince(StateProvince stateProvince) { this.stateProvince = stateProvince
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/bidi/Bid.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Bid {
1
public class Address {
2
	private Long id;
2
	private 
3
	private Auction item;
4
	private BigDecimal amount;
5
	private boolean successful
3
String street;
4
	private String city;
5
	private String postalCode;
6
;
6
	private String country;
7
	private Date datetime; 
7
	private StateProvince stateProvince;
8
	public Long getId() {
8
	public String getStreet() {
9
		return id;
9
		return street;
10
	}
10
	}
11
	public void setId(Long id) {
11
	public void set
12
		this.id = id
12
Street(String street) {
13
;
13
		this.street = street;
14
	}
14
	}
15
	public BigDecimal getAmount() {
15
	public String getCity() {
16
		return amount;
16
		return city;
17
	}
17
	}
18
	public void setAmount(BigDecimal amount) {
18
	public void set
19
		this.amount = amount
19
City(String city) {
20
;
20
		this.city = city;
21
	}
21
	}
22
	public Auction getItem() {
22
	public String getPostalCode() {
23
		return item;
23
		return postalCode;
24
	}
24
	}
25
	public void setItem(Auction item) {
25
	public void set
26
		this.item = item
26
PostalCode(String postalCode) {
27
;
27
		this.postalCode = postalCode;
28
	}
28
	}
29
	public boolean isSuccessful() {
29
	public String getCountry() {
30
		return successful;
30
		return country;
31
	}
31
	}
32
	public void setSuccessful(boolean successful) {
32
	public void set
33
		this.successful = successful
33
Country(String country) {
34
;
34
		this.country = country;
35
	}
35
	}
36
	public Date getDatetime() {
36
	public StateProvince getStateProvince() {
37
		return datetime;
37
		return stateProvince;
38
	}
38
	}
39
	public void setDatetime(Date datetime) {
39
	public void setStateProvince(StateProvince stateProvince) {
40
		this.datetime = datetime
40
		this.stateProvince = stateProvince
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