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