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