public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/toone/Document.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Y.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Document {
1
public class Y {
2
	private Long id;
2
	private Long id;
3
	private String location;
3
	private String 
4
	private User owner;
5

4
x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
6
	public Long getId() {
10
	public Long getId() {
7
		return id;
11
		return id;
8
	}
12
	}
9

13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
17
	public String getX() {
18
		return x;
19
	}
20
	/**
21
	 * Sets the id.
22
	 * @param id The id to set
23
	 */
10
	public void setId(Long id) {
24
	public void setId(Long id) {
11
		this.id = id;
25
		this.id = id;
12
	}
26
	}
13
	public String getLocation() {
14
		return location;
15
	}
16
	public void setLocation(String location
27
	/**
28
	 * Sets the x.
29
	 * @param x The x to set
30
	 */
17
) {
31
	public void setX(String x) {
18
		this.location = location;
32
		this.
19
	}
20

33
x = x;
34
	}
35
	/**
36
	 * @return
37
	 */
21
	public User getOwner() {
38
	public X getTheX() {
22
		return owner;
39
		return 
23
	}
24

40
theX;
41
	}
42
	/**
43
	 * @param x
44
	 */
25
	public void setOwner(User owner) {
45
	public void setTheX(X x) {
26
		this.owner = owner
46
		theX = x
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