public class ChildInfo { private Long id; private Child owner; private String info; public ChildInfo() { } public ChildInfo(String info) { this.info = info; } public Long getId() { return id; } public Child getOwner() { return owner; } public void setOwner(Child owner) { this.owner = owner; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info
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/jpa/cascade/ChildInfo.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 ChildInfo {
1
public class Y {
2
	private Long id;
2
	private Long id;
3
	private Child owner;
3
	private 
4
	private String info;
5
	public ChildInfo() {
6
	}
7
	public ChildInfo(
4
String x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
10
	public Long getId() {
11
		return id;
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
8
String info) {
17
	public String getX() {
9
		this.info = info;
18
		
10
	}
11
	public Long getId(
19
return x;
20
	}
21
	/**
22
	 * Sets the id.
23
	 * @param id The id to set
24
	 */
12
) {
25
	public void setId(Long id) {
13
		return id;
26
		this.id = id;
14
	}
27
	}
15
	public Child getOwner() {
16
		return owner;
17
	}
18
	public void setOwner(Child owner
28
	/**
29
	 * Sets the x.
30
	 * @param x The x to set
31
	 */
19
) {
32
	public void setX(String x) {
20
		this.owner = owner;
33
		this.
21
	}
22
	public String getInfo
34
x = x;
35
	}
36
	/**
37
	 * @return
38
	 */
23
() {
39
	public X getTheX() {
24
		return info;
40
		return 
25
	}
26

41
theX;
42
	}
43
	/**
44
	 * @param x
45
	 */
27
	public void setInfo(String info) {
46
	public void setTheX(X x) {
28
		this.info = info
47
		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