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 C2 extends B { private String address; private C1 c1; private String c2Name; private Collection c1s = new ArrayList(); /** * Returns the address. * @return String */ public String getAddress() { return address; } /** * Sets the address. * @param address The address to set */ public void setAddress(String address) { this.address = address; } /** * @return Returns the c. */ public C1 getC1() { return c1; } /** * @param c The c to set. */ public void setC1(C1 c) { this.c1 = c; } /** * @return Returns the cs. */ public Collection getC1s() { return c1s; } /** * @param cs The cs to set. */ public void setC1s(Collection cs) { this.c1s = cs; } public String getC2Name() { return c2Name; } public void setC2Name(String name) { c2Name = 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/dom4j/many2one/Car.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/C2.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 C2 extends B {
2
	private long id;
2
	private 
3
	private String model;
4
	private CarType carType;
5
	private Set carParts = new HashSe
3
String address;
4
	private C1 c1;
5
	private String c2Name;
6
t();
6
	private Collection c1s = new ArrayList();
7
	
7
	
8
	/**
8
/**
9
	 * @return Returns the carType.
9
	 * Returns the address.
10
	 * @return String
10
	 */
11
	 */
11
	public CarType getCarType() {
12
	public String getAddress() {
12
		return carType;
13
		return address;
13
	}
14
	}
14
	
15
	
15
/**
16
	/**
16
	 * @param carType The carType
17
	 * Sets the address.
17
 to set.
18
	 * @param address The address to set
18
	 */
19
	 */
19
	public void setCarType(CarType carType) {
20
	public void setAddress(String address) {
20
		this.carType = carType;
21
		this.address = address;
21
	}
22
	}
22
	
23
	
23
/**
24
	/**
24
	 * @return Returns the id.
25
	 * @return Returns the c.
25
	 */
26
	 */
26
	public long getId() {
27
	public C1 getC1() {
27
		return id;
28
		return c1;
28
	}
29
	}
29
	/**
30
	/**
30
	 * @param id The id to set.
31
	 * @param c The c to set.
31
	 */
32
	 */
32
	public void setId(long id) {
33
	public void setC1(C1 c) {
33
		this.id = id;
34
		this.c1 = c;
34
	}
35
	}
35
	/**
36
	/**
36
	 * @return Returns the model.
37
	 * @return Returns the cs.
37
	 */
38
	 */
38
	public String getModel() {
39
	public Collection getC1s() {
39
		return model;
40
		return c1s;
40
	}
41
	}
41
	/**
42
	/**
42
	 * @param model The model to set.
43
	 * @param cs The cs to set.
43
	 */
44
	 */
44
	public void setModel(String model) {
45
	public void set
45
		this.model = model
46
C1s(Collection cs) {
46
;
47
		this.c1s = cs;
47
	}
48
	}
48
	public Set getCarParts() {
49
	public String getC2Name() {
49
		return carParts;
50
		return c2Name;
50
	}
51
	}
51
	public void setCarParts(Set carParts) {
52
	public void setC
52
		this.carParts = carParts
53
2Name(String name) {
54
		c2Name = 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