public class Transaction { private Long id; private String description; private MonetoryAmount value; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public MonetoryAmount getValue() { return value; } public void setValue(MonetoryAmount value) { this.value = value;
public class Account { private String accountId; private Person user; private char type; /** * @return Returns the user. */ public Person getUser() { return user; } /** * @param user The user to set. */ public void setUser(Person user) { this.user = 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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/cut/Transaction.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/basic/Account.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Transaction {
1
public class Account {
2

2
	private Long id;
3
	private String accountId;
3
	private String description;
4
	private 
4
	private MonetoryAmount value;
5
	
5
Person user;
6
	private char type;
7
	/**
8
	 * @return Returns the user.
9
	 */
6
	public String getDescription() {
10
	public Person getUser() {
7
		return description;
11
		return user;
8
	}
12
	}
9
	
13
	
10
	public void setDescription(String description
14
/**
15
	 * @param user The user to set.
16
	 */
11
) {
17
	public void setUser(Person user) {
12
		this.description = description;
18
		this.
13
	}
14
	
19
user = user;
20
	}
21
	/**
22
	 * @return Returns the accountId.
23
	 */
15
	public Long getId() {
24
	public String getAccountId() {
16
		return id;
25
		return accountId;
17
	}
26
	}
18
	
27
	
19
	public void setId(Long i
28
/**
29
	 * @param accountId The accountId to set.
30
	 */
20
d) {
31
	public void setAccountId(String accountId) {
21
		this.id = id;
32
		this.accountId = accountId;
22
	}
33
	}
23
	
34
	
24
	public MonetoryAmount getValu
35
/**
36
	 * @return Returns the type.
37
	 */
25
e() {
38
	public char getType() {
26
		return value;
39
		return type;
27
	}
40
	}
28
	
41
	
29
	public void setValue(MonetoryAmount valu
42
/**
43
	 * @param type The type to set.
44
	 */
30
e) {
45
	public void setType(char type) {
31
		this.value = value;
46
		this.type = type;
32
	
47
	
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