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