public class Account { private String accountId; private Customer customer; private Person person; private char type; /** * @return Returns the user. */ public Customer getCustomer() { return customer; } /** * @param user The user to set. */ public void setCustomer(Customer user) { this.customer = user; } /** * @return Returns the accountId. */ public String getAccountId() { return accountId; } /** * @param accountId The accountId to set. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** * @return Returns the type. */ public char getType() { return type; } /** * @param type The type to set. */ public void setType(char type) { this.type = type; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person
public class Human { private Long id; private String name; private char sex; private String address; public void setAddress(String address) { this.address = address; } public String getAddress() { return address; } public void setSex(char sex) { this.sex = sex; } public char getSex() { return sex; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setId(Long id) { this.id = id; } public Long getId() { return id
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/discrim/Account.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subselect/Human.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Account {
1
public class Human {
2
	private String accountId;
2
	private Long id;
3
	private Customer customer;
3
	private 
4
	private Person person;
5
	private char type;
6
	/**
7
	 * @return Returns the user.
8
	 */
9
	public Customer getCustomer() {
10
		return customer;
11
	}
12
	/**
13
	 * @param user The user to set.
14
	 */
15
	public void setCustomer(Customer user
4
String name;
5
	private char sex;
6
	private String address;
7
	
16
) {
8
	public void setAddress(String address) {
17
		this.customer = user;
9
		this.
18
	}
19
	/**
20
	 * @return Returns the accountId.
21
	 */
10
address = address;
11
	}
22
	public String getAccountId() {
12
	public String getAddress() {
23
		return accountId;
13
		return a
24
	}
25
	/**
26
	 * @param accountId The accountId to set.
27
	 */
28
	public void setAccountId(String accountId
14
ddress;
15
	}
29
) {
16
	public void setSex(char sex) {
30
		this.accountId = accountId;
17
		this.
31
	}
32
	/**
33
	 * @return Returns the type.
34
	 */
18
sex = sex;
19
	}
35
	public char getType() {
20
	public char getSex() {
36
		return type;
21
		return 
37
	}
38
	/**
39
	 * @param type The type to set.
40
	 */
22
sex;
23
	}
41
	public void setType(char type) {
24
	public void setName(String name) {
42
		this.type = type;
25
		this.name = name;
43
	}
26
	}
44
	public Person getPerson() {
27
	public String getName() {
45
		return person;
28
		return 
46
	}
47
	
29
name;
30
	}
48
	public void setPerson(Person person) {
31
	public void setId(Long id) {
49
		this.person = person
32
		this.id = id;
33
	}
34
	public Long getId() {
35
		return id
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