public class SubMulti extends Multi { private float amount; private SubMulti parent; private List children; private List moreChildren; /** * Returns the amount. * @return float */ public float getAmount() { return amount; } /** * Sets the amount. * @param amount The amount to set */ public void setAmount(float amount) { this.amount = amount; } /** * Returns the childen. * @return List */ public List getChildren() { return children; } /** * Returns the parent. * @return SubMulti */ public SubMulti getParent() { return parent; } /** * Sets the childen. * @param childen The childen to set */ public void setChildren(List children) { this.children = children; } /** * Sets the parent. * @param parent The parent to set */ public void setParent(SubMulti parent) { this.parent = parent; } /** * Returns the moreChildren. * @return List */ public List getMoreChildren() { return moreChildren; } /** * Sets the moreChildren. * @param moreChildren The moreChildren to set */ public void setMoreChildren(List moreChildren) { this.moreChildren = moreChildren
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/legacy/SubMulti.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/discrim/Account.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class SubMulti extends Multi {
1
public class Account {
2
	private float amount;
2
	private 
3
	private SubMulti parent;
4
	private List childre
3
String accountId;
4
	private Customer customer;
5
n;
5
	private Person person;
6
	private List moreChildren;
6
	private char type;
7
	/**
7
	/**
8
	 * Returns the amount.
8
	 * @return Returns the 
9
	 * @return float
9
user.
10
	 */
10
	 */
11
	public float getAmount() {
11
	public Customer getCustomer() {
12
		return amount;
12
		return customer;
13
	}
13
	}
14
	
14

15
	/**
15
	/**
16
	 * Sets the amount.
16

17
	 * @param amount The amount to set
17
	 * @param user The user to set.
18
	 */
18
	 */
19
	public void setAmount(float amount) {
19
	public void setCustomer(Customer user) {
20
		this.amount = amount;
20
		this.customer = user;
21
	}
21
	}
22
	
22

23
	/**
23
	/**
24
	 * Returns the childen.
24
	 * @return Returns the 
25
	 * @return List
25
accountId.
26
	 */
26
	 */
27
	public List getChildren() {
27
	public String getAccountId() {
28
		return children;
28
		return accountId;
29
	}
29
	}
30
	
30

31
	/**
31
	/**
32
	 * Returns the parent.
32
	 * 
33
	 * @return SubMulti
33
@param accountId The accountId to set.
34
	 */
34
	 */
35
	public SubMulti getParent() {
35
	public void setAccountId(String accountId) {
36
		return parent;
36
		this.accountId = accountId;
37
	}
37
	}
38
	
38

39
	/**
39
	/**
40
	 * Sets the childen.
40
	 * 
41
	 * @param childen The childen to set
41
@return Returns the type.
42
	 */
42
	 */
43
	public void setChildren(List children) {
43
	public char getType() {
44
		this.children = children;
44
		return type;
45
	}
45
	}
46
	
46

47
	/**
47
	/**
48
	 * Sets the parent.
48

49
	 * @param parent The parent to set
49
	 * @param type The type to set.
50
	 */
50
	 */
51
	public void setParent(SubMulti parent) {
51
	public void setType(char type) {
52
		this.parent = parent;
52
		this.
53
	}
54
	
55
	/**
56
	 * Returns the moreChildren.
57
	 * @return List
58
	 */
53
type = type;
54
	}
59
	public List getMoreChildren() {
55
	public Person getPerson() {
60
		return moreChildren;
56
		return 
61
	}
62
	/**
63
	 * Sets the moreChildren.
64
	 * @param moreChildren The moreChildren to set
65
	 */
66
	public void setMoreChildren(List moreChildre
57
person;
58
	}
59
	
67
n) {
60
	public void setPerson(Person person) {
68
		this.moreChildren = moreChildren
61
		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