public class Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x;
public class Employer implements Serializable { private Integer id; private Collection employees; private Integer vers; public Integer getVers() { return vers; } public void setVers(Integer vers) { this.vers = vers; } public Collection getEmployees() { return employees; } public Integer getId() { return id; } public void setEmployees(Collection set) { employees = set; } public void setId(Integer integer) { id = integer;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Y.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Employer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Y {
1
public class Employer implements Serializable {
2
	private Long id;
2
	private Integer id;
3
	private String x;
3
	private 
4
	private X theX;
5
	/**
6
	 * Returns the id.
7
	 * @return Long
8
	 */
9
	public Long getId
4
Collection employees;
5
	private Integer vers;
10
() {
6
	public Integer getVers() {
11
		return id;
7
		return vers;
12
	}
8
	}
13
	/**
9
	
14
	 * Returns the x.
15
	 * @return String
16
	 */
17
	public String getX
10
public void setVers(Integer vers) {
11
		this.vers = vers;
12
	}
18
() {
13
	public Collection getEmployees() {
19
		return x;
14
		return employees;
20
	}
15
	}
21
	/**
16
	
22
	 * Sets the id.
23
	 * @param id The id to set
24
	 */
25
	public void setId(Long id) {
26
		this.id = id;
27
	}
28
	/**
29
	 * Sets the x.
30
	 * @param x The x to set
31
	 */
32
	public void setX(String x) {
33
		this.x = x;
34
	}
35
	/**
36
	 * @return
37
	 */
38
	public X getTheX() {
39
		return theX;
40
	}
41
	/**
42
	 * @param x
43
	 */
44
	public void setTheX(X x) {
45
		theX = x
17
	
18
	public Integer getId() {
19
		return id;
20
	}
21
	
22
	public void setEmployees(Collection set) {
23
		employees = set;
24
	}
25
	public void setId(Integer integer) {
46
;
26
		id = integer;
47
	
27
	
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