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 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
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/propertyref/inheritence/union/Account.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Account {
1
public class Account {
2
	private String accountId;
2
	private String accountId;
3
	private Customer customer;
3
	private Customer customer;
4
	private Person person;
4
	private Person person;
5
	private char type;
5
	private char type;
6
	/**
6
	/**
7
	 * @return Returns the user.
7
	 * @return Returns the user.
8
	 */
8
	 */
9
	public Customer getCustomer() {
9
	public Customer getCustomer() {
10
		return customer;
10
		return customer;
11
	}
11
	}
12
	/**
12
	/**
13
	 * @param user The user to set.
13
	 * @param user The user to set.
14
	 */
14
	 */
15
	public void setCustomer(Customer user) {
15
	public void setCustomer(Customer user) {
16
		this.customer = user;
16
		this.customer = user;
17
	}
17
	}
18
	/**
18
	/**
19
	 * @return Returns the accountId.
19
	 * @return Returns the accountId.
20
	 */
20
	 */
21
	public String getAccountId() {
21
	public String getAccountId() {
22
		return accountId;
22
		return accountId;
23
	}
23
	}
24
	/**
24
	/**
25
	 * @param accountId The accountId to set.
25
	 * @param accountId The accountId to set.
26
	 */
26
	 */
27
	public void setAccountId(String accountId) {
27
	public void setAccountId(String accountId) {
28
		this.accountId = accountId;
28
		this.accountId = accountId;
29
	}
29
	}
30
	/**
30
	/**
31
	 * @return Returns the type.
31
	 * @return Returns the type.
32
	 */
32
	 */
33
	public char getType() {
33
	public char getType() {
34
		return type;
34
		return type;
35
	}
35
	}
36
	/**
36
	/**
37
	 * @param type The type to set.
37
	 * @param type The type to set.
38
	 */
38
	 */
39
	public void setType(char type) {
39
	public void setType(char type) {
40
		this.type = type;
40
		this.type = type;
41
	}
41
	}
42
	public Person getPerson() {
42
	public Person getPerson() {
43
		return person;
43
		return person;
44
	}
44
	}
45
	
46
	public void setPerson(Person person) {
45
	public void setPerson(Person person) {
47
		this.person = person
46
		this.person = person
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