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 Long id; private String address; private String zip; private String country; private Person person; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the person. */ public Person getPerson() { return person; } /** * @param person The person to set. */ public void setPerson(Person person) { this.person = person; } /** * @return Returns the address. */ public String getAddress() { return address; } /** * @param address The address to set. */ public void setAddress(String address) { this.address = address; } /** * @return Returns the country. */ public String getCountry() { return country; } /** * @param country The country to set. */ public void setCountry(String country) { this.country = country; } /** * @return Returns the zip. */ public String getZip() { return zip; } /** * @param zip The zip to set. */ public void setZip(String zip) { this.zip = zip;
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/propertyref/basic/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 Long id;
3
	private Auction item;
3
	private 
4
	private BigDecimal amount;
5
	private boolean successful;
6
	private Date datetime; 
4
String address;
5
	private String zip;
6
	private String country;
7
	private Person person;
8
	/**
9
	 * @return Returns the id.
10
	 */
7
	public Long getId() {
11
	public Long getId() {
8
		return id;
12
		return id;
9
	}
13
	}
14
	/**
15
	 * @param id The id to set.
16
	 */
10
	public void setId(Long id) {
17
	public void setId(Long id) {
11
		this.id = id;
18
		this.id = id;
12
	}
19
	}
13
	public BigDecimal getAmount
20
	/**
21
	 * @return Returns the person.
22
	 */
14
() {
23
	public Person getPerson() {
15
		return amount;
24
		return 
16
	}
17
	public void setAmount(BigDecimal amount
25
person;
26
	}
27
	/**
28
	 * @param person The person to set.
29
	 */
18
) {
30
	public void setPerson(Person person) {
19
		this.amount = amount;
31
		this.
20
	}
21
	public Auction getItem
32
person = person;
33
	}
34
	/**
35
	 * @return Returns the address.
36
	 */
22
() {
37
	public String getAddress() {
23
		return item;
38
		return 
24
	}
25
	public void setItem(Auction item
39
address;
40
	}
41
	/**
42
	 * @param address The address to set.
43
	 */
26
) {
44
	public void setAddress(String address) {
27
		this.item = item;
45
		this.
28
	}
29
	public boolean isSuccessful
46
address = address;
47
	}
48
	/**
49
	 * @return Returns the country.
50
	 */
30
() {
51
	public String getCountry() {
31
		return successful;
52
		return 
32
	}
33
	public void setSuccessful(boolean successful
53
country;
54
	}
55
	/**
56
	 * @param country The country to set.
57
	 */
34
) {
58
	public void setCountry(String country) {
35
		this.successful = successful;
59
		this.
36
	}
37
	public Date getDatetime
60
country = country;
61
	}
62
	/**
63
	 * @return Returns the zip.
64
	 */
38
() {
65
	public String getZip() {
39
		return datetime;
66
		return 
40
	}
41
	public void setDatetime(Date datetime
67
zip;
68
	}
69
	/**
70
	 * @param zip The zip to set.
71
	 */
42
) {
72
	public void setZip(String zip) {
43
		this.datetime = datetime;
73
		this.zip = zip;
44
	
74
	
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