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 Version { long id; String name; String 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; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description;
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/schemaupdate/Version.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Account {
1
public class Version {
2
	private String accountId;
2
	long id;
3
	private Person user;
3
	
4
	private char type;
4
String name;
5
	/**
5
	
6
	 * @return Returns the user.
7
	 */
6
String description;
7
	
8
	public Person getUser() {
8
	public long getId() {
9
		return user;
9
		return 
10
	}
11
	/**
12
	 * @param user The user to set.
13
	 */
10
id;
11
	}
14
	public void setUser(Person user) {
12
	public void setId(long id) {
15
		this.user = user;
13
		this.
16
	}
17
	/**
18
	 * @return Returns the accountId.
19
	 */
14
id = id;
15
	}
20
	public String getAccountId() {
16
	public String getName() {
21
		return accountId;
17
		return name;
22
	}
18
	}
23
	/**
19
	
24
	 * @param accountId The accountId to set.
25
	 */
26
	public void setAccountId(String accountId) {
20
	public void setName(String name) {
27
		this.accountId = accountId;
21
		this.name = name;
28
	}
22
	}
29
	/**
23
	
30
	 * @return Returns the type.
31
	 */
32
	public char getType
33
() {
24
	public String getDescription() {
34
		return type;
25
		return description;
35
	}
26
	}
36
	/**
27
	
37
	 * @param type The type to set.
38
	 */
39
	public void setType(char type
40
) {
28
	public void setDescription(String description) {
41
		this.type = type;
29
		this.description = description;
42
	
30
	
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