public class Stock { private Long id; private String tradeSymbol; private Valuation currentValuation; private Set valuations = new HashSet(); public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTradeSymbol() { return tradeSymbol; } public void setTradeSymbol(String tradeSymbol) { this.tradeSymbol = tradeSymbol; } public Valuation getCurrentValuation() { return currentValuation; } public void setCurrentValuation(Valuation currentValuation) { this.currentValuation = currentValuation; } public Set getValuations() { return valuations; } public void setValuations(Set valuations) { this.valuations = valuations
public class C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = 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; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Stock.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Stock {
1
public class C2 extends B {
2
	private Long id;
2
	private 
3
	private String tradeSymbol;
4
	private Valuation currentValuation
3
String address;
4
	private C1 c1;
5
;
5
	private String c2Name;
6
	private Set valuations = new HashSet();
6
	private Collection c1s = new 
7
ArrayList();
8
	/**
9
	 * Returns the address.
10
	 * @return String
11
	 */
7
	public Long getId() {
12
	public String getAddress() {
8
		return id;
13
		return 
9
	}
14
address;
15
	}
16
	
17
	/**
18
	 * Sets the address.
19
	 * @param address The address to set
20
	 */
10
	public void setId(Long id) {
21
	public void setAddress(String address) {
11
		this.id = id;
22
		this.
12
	}
13
	public String getTradeSymbol() {
14
		return tradeSymbol;
15
	}
16
	public void setTradeSymbol(String tradeSymbol) {
17
		this.tradeSymbol = tradeSymbol;
18
	}
23
address = address;
24
	}
25
	
26
	/**
27
	 * @return Returns the c.
28
	 */
29
	public C1 getC1() {
30
		return c1;
31
	}
32
	/**
33
	 * @param c The c to set.
34
	 */
35
	public void setC1(C1 c) {
36
		this.c1 = c;
37
	}
38
	/**
39
	 * @return Returns the cs.
40
	 */
19
	public Valuation getCurrentValuation() {
41
	public Collection getC
20
		return currentValuation;
21
	}
22
	public void setCurrentValuation(Valuation currentValuation) {
23
		this.currentValuation = currentValuation;
24
	}
25
	public Set getValuations
42
1s() {
43
		return c1s;
44
	}
45
	/**
46
	 * @param cs The cs to set.
47
	 */
48
	public void setC1s(Collection cs) {
49
		this.c1s = cs;
50
	}
26
() {
51
	public String getC2Name() {
27
		return valuations;
52
		return c2Name;
28
	}
53
	}
29
	public void setValuations(Set valuations) {
54
	public void set
30
		this.valuations = valuations
55
C2Name(String name) {
56
		c2Name = name
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