public class Auction { private Long id; private String description; private List bids = new ArrayList(); private Bid successfulBid; private Date end; public Date getEnd() { return end; } public void setEnd(Date end) { this.end = end; } public List getBids() { return bids; } public void setBids(List bids) { this.bids = bids; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Bid getSuccessfulBid() { return successfulBid; } public void setSuccessfulBid(Bid successfulBid) { this.successfulBid = successfulBid;
public class Address implements Serializable { 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/Auction.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cuk/Address.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Auction {
1
public class Address implements Serializable {
2
	private Long id;
2
	private Long id;
3
	private String description;
3
	private String 
4
	private List bids = new ArrayList();
5
	private Bid successfulBid;
6
	private Date end;
7
	
4
address;
5
	private String zip;
6
	private String country;
7
	private Person person;
8
	/**
9
	 * @return Returns the id.
10
	 */
8
	public Date getEnd() {
11
	public Long getId() {
9
		return end;
12
		return id;
10
	}
13
	}
11
	
14
	/**
15
	 * @param id The id to set.
16
	 */
12
public void setEnd(Date end) {
17
	public void setId(Long id) {
13
		this.end = end;
18
		this.id = id;
14
	}
19
	}
15
	
20
	/**
21
	 * @return Returns the person.
22
	 */
16
public List getBids() {
23
	public 
17
		return bids;
18
	}
19
	public void setBids(List bids) {
20
		this.bids = bids;
21
	}
24
Person getPerson() {
25
		return person;
26
	}
27
	/**
28
	 * @param person The person to set.
29
	 */
30
	public void setPerson(Person person) {
31
		this.person = person;
32
	}
33
	/**
34
	 * @return Returns the address.
35
	 */
22
	public String getDescription() {
36
	public String getAddress() {
23
		return description;
37
		return 
24
	}
38
address;
39
	}
40
	/**
41
	 * @param address The address to set.
42
	 */
25
	public void setDescription(String description) {
43
	public void set
26
		this.description = description;
27
	}
44
Address(String address) {
45
		this.address = address;
46
	}
47
	/**
48
	 * @return Returns the country.
49
	 */
28
	public Long getId() {
50
	public String getCountry() {
29
		return id;
51
		return 
30
	}
31
	public void setId(Long id) {
32
		this.id = id;
33
	}
34
	public Bid getSuccessfulBid() {
35
		return successfulBid;
36
	}
37
	public void setSuccessfulBid(Bid successfulBid) {
38
		this.successfulBid = successfulBid
52
country;
53
	}
54
	/**
55
	 * @param country The country to set.
56
	 */
57
	public void setCountry(String country) {
58
		this.country = country;
59
	}
60
	/**
61
	 * @return Returns the zip.
62
	 */
63
	public String getZip() {
64
		return zip;
65
	}
66
	/**
67
	 * @param zip The zip to set.
68
	 */
69
	public void setZip(String zip) {
39
;
70
		this.zip = zip;
40
	
71
	
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