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 Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Sets the prop. * @param prop The prop to set */ public void setProp(String prop) { this.prop = prop; } /** * Sets the several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * Returns the string. * @return String */ public String getString() { return string; } /** * Sets the string. * @param string The string to set */ public void setString(String string) { this.string = string;
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/legacy/Single.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Valuation {
1
public class Single implements Serializable {
2
	private Long id;
2
	private String id;
3
	private Stock stock;
3
	private String prop;
4
	private Date valuationDate;
4
	private 
5
	private Double value;
5
String string;
6
	private Collection several = new HashSet();
7
	/**
8
	 * Returns the id.
9
	 * @return String
10
	 */
6
	public Long getId() {
11
	public String getId() {
7
		return id;
12
		return id;
8
	}
13
	}
9
	public void setId(Long id) {
10
		this.id = id;
11
	}
12
	public Stock getStock() {
13
		return stock;
14
	}
15
	public void setStock(Stock stock) {
16
		this.stock = stock;
17
	}
18
	public Date getValuationDate() {
19
		return valuationDate;
20
	}
14
	
15
	/**
16
	 * Returns the prop.
17
	 * @return String
18
	 */
19
	public String getProp() {
20
		return prop;
21
	}
22
	
23
	/**
24
	 * Returns the several.
25
	 * @return Set
26
	 */
27
	public Collection getSeveral() {
28
		return several;
29
	}
30
	
31
	/**
32
	 * Sets the id.
33
	 * @param id The id to set
34
	 */
35
	public void setId(String id) {
36
		this.id = id;
37
	}
38
	
39
	/**
40
	 * Sets the prop.
41
	 * @param prop The prop to set
42
	 */
43
	public void setProp(String prop) {
44
		this.prop = prop;
45
	}
46
	
47
	/**
48
	 * Sets the several.
49
	 * @param several The several to set
50
	 */
21
	public void setValuationDate(Date valuationDate) {
51
	public void set
22
		this.valuationDate = valuationDate;
23
	}
24
	public Double getValue() {
25
		return value;
26
	}
27
	public void setValue(Double value) {
28
		this.value = value
52
Several(Collection several) {
53
		this.several = several;
54
	}
55
	
56
	/**
57
	 * Returns the string.
58
	 * @return String
59
	 */
60
	public String getString() {
61
		return string;
62
	}
63
	
64
	/**
65
	 * Sets the string.
66
	 * @param string The string to set
67
	 */
68
	public void setString(String string) {
29
;
69
		this.string = string;
30
	
70
	
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