public class Car implements java.io.Serializable { private long id; private String model; private CarType carType; private Set carParts = new HashSet(); /** * @return Returns the carType. */ public CarType getCarType() { return carType; } /** * @param carType The carType to set. */ public void setCarType(CarType carType) { this.carType = carType; } /** * @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 model. */ public String getModel() { return model; } /** * @param model The model to set. */ public void setModel(String model) { this.model = model; } public Set getCarParts() { return carParts; } public void setCarParts(Set carParts) { this.carParts = carParts;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/dom4j/many2one/Car.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/entitymode/multi/Valuation.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Car implements java.io.Serializable {
1
public class Valuation {
2
	private long id;
2
	private Long id;
3
	private String model;
3
	private Stock stock;
4
	private CarType carType;
4
	private 
5
	private Set carParts = new HashSet();
6
	
7
	/**
8
	 * @return Returns the carType.
9
	 */
10
	public CarType getCarType() {
11
		return carType;
12
	}
13
	/**
14
	 * @param carType The carType to set.
15
	 */
16
	public void setCarType(CarType carType) {
17
		this.carType = carType;
18
	}
19
	/**
20
	 * @return Returns the id.
21
	 */
22
	public long getId() {
23
		return id;
24
	}
25
	/**
26
	 * @param id The id to set.
27
	 */
28
	public void setId(long id) {
29
		this.id = id;
30
	}
31
	/**
32
	 * @return Returns the model.
33
	 */
34
	public String getModel() {
35
		return model;
36
	}
37
	/**
38
	 * @param model The model to set.
39
	 */
40
	public void setModel(String model) {
41
		this.model = model
5
Date valuationDate;
6
	private Double value;
7
	public Long getId() {
8
		return id;
9
	}
10
	public void setId(Long id) {
11
		this.id = id;
12
	}
13
	public Stock getStock() {
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) {
42
;
23
		this.valuationDate = valuationDate;
43
	}
24
	}
44
	public Set getCarParts() {
25
	public Double getValue() {
45
		return carParts;
26
		return value;
46
	}
27
	}
47
	public void setCarParts(Set carParts) {
28
	public void setValue(Double value) {
48
		this.carParts = carParts;
29
		this.value = value;
49
	
30
	
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