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 Child { private Long id; private String name; private Parent parent; /** * @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 name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } /** * @return Returns the parent. */ public Parent getParent() { return parent; } /** * @param parent The parent to set. */ public void setParent(Parent parent) { this.parent = parent;
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/onetomany/Child.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Y {
1
public class Child {
2
	private Long id;
2
	private Long id;
3
	private String x;
3
	private String name;
4
	private X theX;
4
	private Parent parent;
5
	/**
5
	/**
6
	 * Returns the id.
6
	 * @return Returns the id.
7
	 * @return Long
7
	
8
	 */
8
 */
9
	public Long getId() {
9
	public Long getId() {
10
		return id;
10
		return id;
11
	}
11
	}
12
	/**
12
	/**
13
	 * Returns the x.
13
	 * 
14
	 * @return String
15
	 */
16
	public String getX() {
17
		return x
14
@param id The id to set.
15
	 */
16
	public void setId(Long id) {
18
;
17
		this.id = id;
19
	}
18
	}
20
	/**
19
	/**
21
	 * Sets the id.
20
	 * 
22
	 * @param id The id to set
23
	 */
24
	public void setId(Long id) {
25
		this.id = id
21
@return Returns the name.
22
	 */
23
	public String getName() {
26
;
24
		return name;
27
	}
25
	}
28
	/**
26
	/**
29
	 * Sets the x.
27
	
30
	 * @param x The x to set
28
 * @param name The name to set.
31
	 */
29
	 */
32
	public void setX(String x) {
30
	public void setName(String name) {
33
		this.x = x;
31
		this.name = name;
34
	}
32
	}
35
	/**
33
	/**
36
	 * @return
34
	 * @return Returns the parent.
37
	 */
35
	 */
38
	public X getTheX() {
36
	public Parent getParent() {
39
		return theX;
37
		return parent;
40
	}
38
	}
41
	/**
39
	/**
42
	 * @param x
40
	 * @param parent The parent to set.
43
	 */
41
	 */
44
	public void setTheX(X x) {
42
	public void set
45
		theX = x
43
Parent(Parent parent) {
46
;
44
		this.parent = parent;
47
	
45
	
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