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 C1 extends B{ private String address; private String c1Name; private C2 c2; private D d; private Collection c2s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * Returns the d. * @return D */ public D getD() { return d; } /** * Sets the d. * @param d The d to set */ public void setD(D d) { this.d = d; } /** * @return Returns the c. */ public C2 getC2() { return c2; } /** * @param c The c to set. */ public void setC2(C2 c) { this.c2 = c; } /** * @return Returns the cs. */ public Collection getC2s() { return c2s; } /** * @param cs The cs to set. */ public void setC2s(Collection cs) { this.c2s = cs; } /** * @return Returns the c1Name. */ public String getC1Name() { return c1Name; } /** * @param name The c1Name to set. */ public void setC1Name(String name) { c1Name = name;
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/legacy/C1.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Auction {
1
public class C1 extends B{
2
	private Long id;
2
	private String address;
3
	private String description;
3
	private String 
4
	private List bids = new ArrayList();
5
	private Bid successfulBid;
6
	private Date end;
7
	
4
c1Name;
5
	private C2 c2;
6
	private D d;
7
	private Collection c2s = new ArrayList();
8
	/**
9
	 * Returns the address.
10
	 * @return String
11
	 */
8
	public Date getEnd() {
12
	public 
9
		return end;
10
	}
11
	public void setEnd(Date end
13
String getAddress() {
14
		return address;
15
	}
16
	
17
	/**
18
	 * Sets the address.
19
	 * @param address The address to set
20
	 */
12
) {
21
	public void setAddress(String address) {
13
		this.end = end;
22
		this.
14
	}
15
	public List getBids() {
16
		return bids;
17
	}
23
address = address;
24
	}
25
	
26
	/**
27
	 * Returns the d.
28
	 * @return D
29
	 */
30
	public D getD() {
31
		return d;
32
	}
33
	
34
	/**
35
	 * Sets the d.
36
	 * @param d The d to set
37
	 */
18
	public void setBids(List bids) {
38
	public void setD(D d) {
19
		this.bids = bids;
39
		this.
20
	}
21
	public String getDescription() {
22
		return description;
23
	}
24
	public void setDescription(String description) {
25
		this.description = description;
26
	}
40
d = d;
41
	}
42
	
43
	/**
44
	 * @return Returns the c.
45
	 */
46
	public C2 getC2() {
47
		return c2;
48
	}
49
	/**
50
	 * @param c The c to set.
51
	 */
52
	public void setC2(C2 c) {
53
		this.c2 = c;
54
	}
55
	/**
56
	 * @return Returns the cs.
57
	 */
27
	public Long getId() {
58
	public Collection getC2s() {
28
		return id;
59
		return c2s;
29
	}
60
	}
61
	/**
62
	 * @param cs The cs to set.
63
	 */
30
	public void setId(Long id) {
64
	public void setC2s(Collection cs) {
31
		this.id = id;
65
		this.c2s = cs;
32
	}
66
	}
33
	public Bid getSuccessfulBid() {
34
		return successfulBid;
35
	}
36
	public void setSuccessfulBid(Bid successfulBid) {
37
		this.successfulBid = successfulBid
67
	/**
68
	 * @return Returns the c1Name.
69
	 */
70
	public String getC1Name() {
71
		return c1Name;
72
	}
73
	/**
74
	 * @param name The c1Name to set.
75
	 */
76
	public void setC1Name(String name) {
38
;
77
		c1Name = name;
39
	
78
	
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