public class Document { private Long id; private String location; private User owner; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public User getOwner() { return owner; } public void setOwner(User owner) { this.owner = owner
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/component/cascading/toone/Document.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 Document {
1
public class Account {
2
	private Long id;
2
	private 
3
	private String location;
4
	private User own
3
String accountId;
4
	private Person user;
5
	private char type;
6
	/**
5
er;
7
	 * @return Returns the user.
8
	 */
6
	public Long getId() {
9
	public Person getUser() {
7
		return id;
10
		return user;
8
	}
11
	}
12
	/**
13
	 * @param user The user to set.
14
	 */
9
	public void setId(Long id) {
15
	public void set
10
		this.id = id;
11
	}
16
User(Person user) {
17
		this.user = user;
18
	}
19
	/**
20
	 * @return Returns the accountId.
21
	 */
12
	public String getLocation() {
22
	public String getAccountId() {
13
		return location;
23
		return 
14
	}
24
accountId;
25
	}
26
	/**
27
	 * @param accountId The accountId to set.
28
	 */
15
	public void setLocation(String location) {
29
	public void set
16
		this.location = location;
17
	}
30
AccountId(String accountId) {
31
		this.accountId = accountId;
32
	}
33
	/**
34
	 * @return Returns the type.
35
	 */
18
	public User getOwner() {
36
	public char getType() {
19
		return owner;
37
		return type;
20
	}
38
	}
39
	/**
40
	 * @param type The type to set.
41
	 */
21
	public void setOwner(User owner) {
42
	public void set
22
		this.owner = owner
43
Type(char type) {
44
		this.type = type
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