public class Person { private Long id; private String name; private BankAccount bankAccount; /** * @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; } public BankAccount getBankAccount() { return bankAccount; } public void setBankAccount(BankAccount bankAccount) { this.bankAccount = bankAccount
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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/joined/Person.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/stats/Continent.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Person {
1
public class Continent {
2
	private Long id;
2
	private Integer id;
3
	private String name;
3
	private String name;
4
	private BankAccount bankAccount;
4
	private 
5
	/**
6
	 * @return Returns the id.
7
	 */
5
Set countries;
8
	public Long getId() {
6
	public Integer getId() {
9
		return id;
7
		return id;
10
	}
8
	}
11
	/**
12
	 * @param id The id to set.
13
	 */
14
	public void setId(Long id) {
9
	public void setId(Integer id) {
15
		this.id = id;
10
		this.id = id;
16
	}
11
	}
17
	/**
18
	 * @return Returns the name.
19
	 */
20
	public String getName() {
12
	public String getName() {
21
		return name;
13
		return name;
22
	}
14
	}
23
	/**
24
	 * @param name The name to set.
25
	 */
26
	public void setName(String name) {
15
	public void setName(String name) {
27
		this.name = name;
16
		this.name = name;
28
	}
17
	}
29

30
	public BankAccount getBankAccount() {
18
	public Set getCountries() {
31
		return bankAccount;
19
		return countries;
32
	}
20
	}
33
	public void setBankAccount(BankAccount bankAccount) {
21
	public void setCountries(Set countries) {
34
		this.bankAccount = bankAccount
22
		this.countries = countries
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