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