public class E { private Long id; private float amount; private A reverse; private Set as; /** * Returns the amount. * @return float */ public float getAmount() { return amount; } /** * Returns the id. * @return long */ public Long getId() { return id; } /** * Sets the amount. * @param amount The amount to set */ public void setAmount(float amount) { this.amount = amount; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } public A getReverse() { return reverse; } public void setReverse(A a) { reverse = a; } /** * @return Returns the as. */ public Set getAs() { return as; } /** * @param as The as to set. */ public void setAs(Set as) { this.as = as;
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/E.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 E {
1
public class Account {
2
	private Long id;
2
	private String accountId;
3
	private float amount;
3
	private 
4
	private A reverse;
5
	private Set as;
4
Customer customer;
5
	private Person person;
6
	private char type;
6
	/**
7
	/**
7
	 * Returns the amount.
8
	 * @return Returns the 
8
	 * @return float
9
user.
9
	 */
10
	 */
10
	public float getAmount() {
11
	public Customer getCustomer() {
11
		return amount;
12
		return customer;
12
	}
13
	}
13
	
14

14
	/**
15
	/**
15
	 * Returns the id.
16
	 * 
16
	 * @return long
17
@param user The user to set.
18
	 */
19
	public void setCustomer(Customer user) {
20
		this.customer = user;
21
	}
22
	/**
23
	 * @return Returns the accountId.
17
	 */
24
	 */
18
	public Long getId() {
25
	public String getAccountId() {
19
		return id;
26
		return accountId;
20
	}
27
	}
21
	
28

22
	/**
29
	/**
23
	 * Sets the amount.
30

24
	 * @param amount The amount to set
31
	 * @param accountId The accountId to set.
25
	 */
32
	 */
26
	public void setAmount(float amount) {
33
	public void setAccountId(String accountId) {
27
		this.amount = amount;
34
		this.accountId = accountId;
28
	}
35
	}
29
	
36

30
	/**
37
	/**
31
	 * Sets the id.
38
	 * 
32
	 * @param id The id to set
39
@return Returns the type.
33
	 */
40
	 */
34
	public void setId(Long id) {
41
	public char getType() {
35
		this.id = id;
42
		return type;
36
	}
43
	}
37
	
44
	
38
	public A getReverse() {
39
		return reverse;
40
	}
45
/**
46
	 * @param type The type to set.
47
	 */
41
	public void setReverse(A a) {
48
	public void setType(char type) {
42
		reverse = a;
49
		
43
	}
44
	/**
45
	 * @return Returns the as.
46
	 */
50
this.type = type;
51
	}
47
	public Set getAs() {
52
	public Person getPerson() {
48
		return as;
53
		return person;
49
	}
54
	}
55

50
	/**
56
	
51
	 * @param as The as to set.
52
	 */
53
	public void setAs(Set as
54
) {
57
	public void setPerson(Person person) {
55
		this.as = as;
58
		this.person = person;
56
	
59
	
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