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