public class Valuation { private Long id; private Stock stock; private Date valuationDate; private Double value; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Stock getStock() { return stock; } public void setStock(Stock stock) { this.stock = stock; } public Date getValuationDate() { return valuationDate; } public void setValuationDate(Date valuationDate) { this.valuationDate = valuationDate; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value;
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/Valuation.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 Valuation {
1
public class Thing {
2
	private Long id;
2
	private 
3
	private Stock stock;
4
	private Date valuationDate;
5
	private Doubl
3
Employee salesperson;
4
	private String comments;
5
	/**
6
e value;
6
	 * @return Returns the sal
7
	public Long getId() {
8
		return id;
9
	}
10
	public void setId(Long id) {
11
		this.id = id;
12
	}
7
esperson.
8
	 */
9
	public Employee getSalesperson() {
10
		return salesperson;
11
	}
12
	/**
13
	 * @param salesperson The salesperson to set.
14
	 */
15
	public void setSalesperson(Employee salesperson) {
16
		this.salesperson = salesperson;
17
	}
18
	/**
19
	 * @return Returns the comments.
20
	 */
13
	public Stock getStock() {
21
	public St
14
		return stock;
15
	}
16
	public void setStock(Stock stock) {
17
		this.stock = stock;
18
	}
19
	public Date getValuationDate() {
20
		return valuationDate;
21
	}
22
	public void setValuationDate(Date valuationDate) {
23
		this.valuationDate = valuationDate;
24
	}
22
ring getComments() {
23
		return comments;
24
	}
25
	/**
26
	 * @param comments The comments to set.
27
	 */
28
	public void setComments(String comments) {
29
		this.comments = comments;
30
	}
31
	Long id;
32
	String name;
33
	/**
34
	 * @return Returns the ID.
35
	 */
36
	public Long getId() {
37
		return id;
38
	}
39
	/**
40
	 * @param id The ID to set.
41
	 */
42
	public void setId(Long id) {
43
		this.id = id;
44
	}
45
	/**
46
	 * @return Returns the name.
47
	 */
25
	public Double getValue() {
48
	public String getName() {
26
		return value;
49
		return name;
27
	}
50
	}
28
	public void setValue(Double valu
51
	/**
52
	 * @param name The name to set.
53
	 */
29
e) {
54
	public void setName(String name) {
30
		this.value = value;
55
		this.name = name;
31
	
56
	
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