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;
public class Immutable { private String foo; private String bar; private String id; public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } public String getBar() { return bar; } public void setBar(String bar) { this.bar = bar; } public String getId() { return id; } public void setId(String id) { this.id = id;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinedsubclass/Employee.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Immutable.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Employee extends Person {
1
public class Immutable {
2
	private String title;
2
	private String foo;
3
	private BigDecimal salary;
3
	private String bar;
4
	private Employee manager;
4
	private 
5
	/**
6
	 * @return Returns the title.
7
	 */
5
String id;
6
	
8
	public String getTitle() {
7
	public String getFoo() {
9
		return title;
8
		return foo;
10
	}
9
	}
11
	/**
10
	
12
	 * @param title The title to set.
13
	 */
14
	public void setTitle(String title) {
11
	public void setFoo(String foo) {
15
		this.title = title;
12
		this.
16
	}
17
	/**
18
	 * @return Returns the manager.
19
	 */
13
foo = foo;
14
	}
15
	
20
	public Employee getManager() {
16
	public String getBar() {
21
		return manager;
17
		return bar;
22
	}
18
	}
23
	/**
19
	
24
	 * @param manager The manager to set.
25
	 */
26
	public void setManager(Employee manage
27
r) {
20
	public void setBar(String bar) {
28
		this.manager = manager;
21
		this.
29
	}
30
	/**
31
	 * @return Returns the salary.
32
	 */
33
	public BigDecimal getSalary() {
34
		return salary;
35
	}
36
	/**
37
	 * @param salary The salary to set.
38
	 */
39
	public void setSalary(BigDecimal salary) {
40
		this.salary = salary
22
bar = bar;
23
	}
24
	
25
	public String getId() {
26
		return id;
27
	}
28
	
29
	public void setId(String id) {
41
;
30
		this.id = id;
42
	
31
	
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