public class Item { private Long id; private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name
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/testing/src/main/java/org/hibernate/test/cache/Item.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 Item {
1
public class Y {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String x;
4
	private String descripti
4
	private X theX;
5
	/**
6
	 * Returns the id.
5
on;
7
	 * @return Long
6
	
8
	 */
7
	public String getDescription() {
9
	public Long getId() {
8
		return description;
10
		return 
9
	}
10
	public void setDescription(String description) {
11
		this.description = description;
12
	}
13
	public Long getId() {
14
		return id;
15
	}
11
id;
12
	}
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
	 */
24
	public void setId(Long id) {
25
		this.id = id;
26
	}
27
	/**
28
	 * Sets the x.
29
	 * @param x The x to set
30
	 */
16
	public void setId(Long id) {
31
	public void setX(String x) {
17
		this.id = id;
32
		this.x = x;
18
	}
33
	}
34
	/**
35
	 * @return
36
	 */
19
	public String getName() {
37
	public X getTheX() {
20
		return name;
38
		return theX;
21
	}
39
	}
22
	public void setName(String name) {
23
		this.name = name
40
	/**
41
	 * @param x
42
	 */
43
	public void setTheX(X x) {
44
		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