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