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 Person { private String name; private Date dob; private Employee employee; private Customer customer; public Customer getCustomer() { return customer; } public void setCustomer(Customer customer) { this.customer = customer; } public Employee getEmployee() { return employee; } public void setEmployee(Employee employee) { this.employee = employee; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Date getDob() { return dob; } public void setDob(Date dob) { this.dob = dob;
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/onetoone/link/Person.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 Person {
2
	private long id;
2
	private 
3
	private String model;
4
	private CarType carType;
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
	 */
3
String name;
4
	private Date dob;
5
	private Employee employee;
6
	private Customer customer;
7
	public Customer getCustomer() {
8
		return customer;
9
	}
10
	public void setCustomer(Customer customer) {
11
		this.customer = customer;
12
	}
13
	public Employee getEmployee() {
14
		return employee;
15
	}
16
	public void setEmployee(Employee employee) {
17
		this.employee = employee;
18
	}
34
	public String getModel() {
19
	public String getName() {
35
		return model;
20
		return name;
36
	}
21
	}
37
	/**
22
	
38
	 * @param model The model to set.
39
	 */
40
	public void setModel(String model) {
23
public void setName(String name) {
41
		this.model = model;
24
		this.
42
	}
43
	public Set getCarParts
25
name = name;
26
	}
44
() {
27
	public Date getDob() {
45
		return carParts;
28
		return dob;
46
	}
29
	}
47
	public void setCarParts(Set carParts) {
30
	public void set
48
		this.carParts = carParts
31
Dob(Date dob) {
49
;
32
		this.dob = dob;
50
	
33
	
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