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 Eye { private long id; private String name; private Jay jay; private Set jays = new HashSet(); /** * @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 jay. */ public Jay getJay() { return jay; } /** * @param jay The jay to set. */ public void setJay(Jay jay) { this.jay = jay; } /** * @return Returns the jays. */ public Set getJays() { return jays; } /** * @param jays The jays to set. */ public void setJays(Set jays) { this.jays = jays; } /** * @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/dom4j/many2one/Car.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Eye.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 Eye {
2
	private long id;
2
	private long id;
3
	private String model;
3
	private String name;
4
	private CarType carType;
4
	private Jay jay;
5
	private Set carParts = new HashSet();
5
	private Set jays = new HashSet();
6
	
7
	/**
6
	/**
8
	 * @return Returns the carType.
7
	 * @return Returns the id.
9
	 */
8
	 */
10
	public CarType getCarType() {
9
	public long getId() {
11
		return carType;
10
		return id;
12
	}
11
	}
13
	/**
12
	/**
14
	 * @param carType The carType to set.
13
	 * @param id The id to set.
15
	 */
14
	 */
16
	public void setCarType(CarType carType) {
15
	public void set
17
		this.carType = carType
16
Id(long id) {
18
;
17
		this.id = id;
19
	}
18
	}
20
	/**
19
	/**
21
	 * @return Returns the id.
20
	 * @return Returns the jay.
22
	 */
21
	 */
23
	public long getId() {
22
	public Jay getJay() {
24
		return id;
23
		return jay;
25
	}
24
	}
26
	/**
25
	/**
27
	 * @param id The id to set.
26
	 * @param jay The jay to set.
28
	 */
27
	 */
29
	public void setId(long id) {
28
	public void setJay(Jay jay) {
30
		this.id = id;
29
		this.jay = jay;
31
	}
30
	}
32
	/**
31
	/**
33
	 * @return Returns the model.
32
	 * @return Returns the jays.
34
	 */
33
	 */
35
	public String getModel() {
34
	public Set getJays() {
36
		return model;
35
		return jays;
37
	}
36
	}
38
	/**
37
	/**
39
	 * @param model The model to set.
38
	 * @param jays The jays to set.
40
	 */
39
	 */
41
	public void setModel(String model) {
40
	public void set
42
		this.model = model;
43
	}
44
	public Set getCarParts() {
45
		return carParts;
46
	}
41
Jays(Set jays) {
42
		this.jays = jays;
43
	}
44
	/**
45
	 * @return Returns the name.
46
	 */
47
	public String getName() {
48
		return name;
49
	}
50
	/**
51
	 * @param name The name to set.
52
	 */
47
	public void setCarParts(Set carParts) {
53
	public void set
48
		this.carParts = carParts
54
Name(String name) {
49
;
55
		this.name = name;
50
	
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