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 Thing { private Employee salesperson; private String comments; /** * @return Returns the salesperson. */ public Employee getSalesperson() { return salesperson; } /** * @param salesperson The salesperson to set. */ public void setSalesperson(Employee salesperson) { this.salesperson = salesperson; } /** * @return Returns the comments. */ public String getComments() { return comments; } /** * @param comments The comments to set. */ public void setComments(String comments) { this.comments = comments; } Long id; String name; /** * @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 name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = 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/join/Thing.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Stock {
1
public class Thing {
2
	private Long id;
2
	private Employee salesperson;
3
	private String tradeSymbol;
3
	private String 
4
	private Valuation currentValuation;
5
	private Set valuations = new HashSet();
6
	public Long getId() {
7
		return id;
8
	}
9
	public void setId(Long id) {
10
		this.id = id;
11
	}
4
comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson;
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
14
	public void setSalesperson(Employee salesperson) {
15
		this.salesperson = salesperson;
16
	}
17
	/**
18
	 * @return Returns the comments.
19
	 */
12
	public String getTradeSymbol() {
20
	public String getComments() {
13
		return tradeSymbol;
21
		return 
14
	}
22
comments;
23
	}
24
	/**
25
	 * @param comments The comments to set.
26
	 */
15
	public void setTradeSymbol(String tradeSymbol) {
27
	public void set
16
		this.tradeSymbol = tradeSymbol;
17
	}
18
	public Valuation g
28
Comments(String comments) {
29
		this.comments = comments;
30
	}
31
	Long id;
32
	String name;
33
	/**
19
etCurrentValuation() {
34
	 * @retur
20
		return currentValuation;
21
	}
22
	public void setCurrentValuation(Valuation currentValuation) {
23
		this.currentValuation = currentValuation;
24
	}
35
n Returns the ID.
36
	 */
37
	public Long getId() {
38
		return id;
39
	}
40
	/**
41
	 * @param id The ID to set.
42
	 */
43
	public void setId(Long id) {
44
		this.id = id;
45
	}
46
	/**
47
	 * @return Returns the name.
48
	 */
25
	public Set getValuations() {
49
	public S
26
		return valuations;
27
	}
50
tring getName() {
51
		return name;
52
	}
53
	/**
54
	 * @param name The name to set.
55
	 */
28
	public void setValuations(Set valuations) {
56
	public void setName(String name) {
29
		this.valuations = valuations
57
		this.name = 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