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 Employee extends Person { private String title; private BigDecimal salary; private Employee manager; /** * @return Returns the title. */ public String getTitle() { return title; } /** * @param title The title to set. */ public void setTitle(String title) { this.title = title; } /** * @return Returns the manager. */ public Employee getManager() { return manager; } /** * @param manager The manager to set. */ public void setManager(Employee manager) { this.manager = manager; } /** * @return Returns the salary. */ public BigDecimal getSalary() { return salary; } /** * @param salary The salary to set. */ public void setSalary(BigDecimal salary) { this.salary = salary;
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/extendshbm/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Item {
1
public class 
2
    
2
Employee extends Person {
3
private Long id;
3
	private 
4
    private String name;
5
    private String description;
6
    public String getDescription() {
7
        return description;
8
    }
9
    
4
String title;
5
	private BigDecimal salary;
6
	private Employee manager;
7
	/**
8
	 * @return Returns the title.
9
	 */
10
	public String getTitle() {
11
		return title;
12
	}
13
	/**
14
	 * @param title The title to set.
15
	 */
10
public void setDescription(String description) {
16
	public void set
11
        this.description = description;
12
    }
13
    public Long getId() {
14
        return id;
15
    }
16
    public void setId(Long id) {
17
        this.id = id;
18
    }
19
    public String getName() {
20
        return name;
21
    }
22
    public void setName(String name) {
23
        this.name = name;
24
    
17
Title(String title) {
18
		this.title = title;
19
	}
20
	/**
21
	 * @return Returns the manager.
22
	 */
23
	public Employee getManager() {
24
		return manager;
25
	}
26
	/**
27
	 * @param manager The manager to set.
28
	 */
29
	public void setManager(Employee manager) {
30
		this.manager = manager;
31
	}
32
	/**
33
	 * @return Returns the salary.
34
	 */
35
	public BigDecimal getSalary() {
36
		return salary;
37
	}
38
	/**
39
	 * @param salary The salary to set.
40
	 */
41
	public void setSalary(BigDecimal salary) {
42
		this.salary = salary;
43
	
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