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;
public class Item { private long id; private String name; private String description; 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 String getName() { return name; } public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/basic/Account.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/querycache/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Account {
1
public class Item {
2
	private String accountId;
2
	private long id;
3
	private Person user;
3
	private 
4
	private char type;
5
	/**
6
	 * @return Returns the user.
7
	 */
4
String name;
5
	private String description;
8
	public Person getUser() {
6
	public String getDescription() {
9
		return user;
7
		return 
10
	}
11
	/**
12
	 * @param user The user to set.
13
	 */
14
	public void setUser(Person user
8
description;
9
	}
15
) {
10
	public void setDescription(String description) {
16
		this.user = user;
11
		this.
17
	}
18
	/**
19
	 * @return Returns the accountId.
20
	 */
12
description = description;
13
	}
21
	public String getAccountId() {
14
	public long getId() {
22
		return accountId;
15
		return id;
23
	}
16
	}
24
	/**
25
	 * @param accountId The accountId to set.
26
	 */
27
	public void setAccountId(String accountI
28
d) {
17
	public void setId(long id) {
29
		this.accountId = accountId;
18
		this.id = id;
30
	}
19
	}
31
	/**
32
	 * @return Returns the type.
33
	 */
34
	public char getType() {
20
	public String getName() {
35
		return type;
21
		return 
36
	}
37
	/**
38
	 * @param type The type to set.
39
	 */
22
name;
23
	}
40
	public void setType(char type) {
24
	public void setName(String name) {
41
		this.type = type;
25
		this.name = name;
42
	
26
	
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