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