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;
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/legacy/Immutable.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 Immutable {
1
public class Account {
2
	private String foo;
2
	private String 
3
	private String ba
3
accountId;
4
r;
4
	private Person user;
5
	private String id;
5
	private 
6
	
7
	public String getFoo
6
char type;
7
	/**
8
	 * @return Returns the user.
9
	 */
8
() {
10
	public Person getUser() {
9
		return foo;
11
		return user;
10
	}
12
	}
11
	
13
	/**
14
	 * @param user The user to set.
15
	 */
12
	public void setFoo(String foo) {
16
	public void setUser(Person user) {
13
		this.foo = foo;
17
		this.user = user;
14
	}
18
	}
15
	
19
	/**
20
	 * @return Returns the accountId.
21
	 */
16
	public String getBar() {
22
	public String getAccountId() {
17
		return bar;
23
		return accountId;
18
	}
24
	}
19
	
25
	/**
26
	 * @param accountId The accountId to set.
27
	 */
20
	public void setBar(String bar) {
28
	public void setAccountId(String accountId) {
21
		this.bar = bar;
29
		this.accountId = accountId;
22
	}
30
	}
23
	
31
	
24
	public String getId
32
/**
33
	 * @return Returns the type.
34
	 */
25
() {
35
	public char getType() {
26
		return id;
36
		return type;
27
	}
37
	}
28
	
38
	/**
39
	 * @param type The type to set.
40
	 */
29
	public void setId(String id) {
41
	public void setType(char type) {
30
		this.id = id;
42
		this.type = type;
31
	
43
	
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