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 Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x;
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/Y.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Account implements Serializable {
1
public class Y {
2
	private String accountId;
2
	private Long id;
3
	private Person user;
3
	private String x;
4
	private char type;
4
	private X theX;
5
	/**
5
	/**
6
	 * @return Returns the user.
6
	 * Returns the id.
7
	 * @return Long
7
	 */
8
	 */
8
	public Person getUser() {
9
	public Long getId() {
9
		return user;
10
		return id;
10
	}
11
	}
11
	/**
12
	/**
12
	 * @param user The user to set.
13
	 * 
13
	 */
14
	public void setUser(Person user) {
15
		this.user = user
14
Returns the x.
15
	 * @return String
16
	 */
17
	public String getX() {
16
;
18
		return x;
17
	}
19
	}
18
	/**
20
	/**
19
	 * @return Returns the accountId.
21
	 * 
20
	 */
21
	public String getAccountId() {
22
		return accountI
22
Sets the id.
23
	 * @param id The id to set
24
	 */
25
	public void setId(Long id) {
23
d;
26
		this.id = id;
24
	}
27
	}
25
	/**
28
	/**
26
	 * @param accountId The accountId
29
	 * Sets the x.
27
 to set.
30
	 * @param x The x to set
28
	 */
31
	 */
29
	public void setAccountId(String accountId) {
32
	public void set
30
		this.accountId = accountId
33
X(String x) {
31
;
34
		this.x = x;
32
	}
35
	}
33
	/**
36
	/**
34
	 * @return Returns the type.
37
	 * @return
35
	 */
38
	 */
36
	public char getType() {
39
	public X getTheX() {
37
		return type;
40
		return theX;
38
	}
41
	}
39
	/**
42
	/**
40
	 * @param type The type to set.
43
	 * @param x
41
	 */
44
	 */
42
	public void setType(char type) {
45
	public void setT
43
		this.type = type
46
heX(X x) {
44
;
47
		theX = x;
45
	
48
	
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