public class User { private Long id; private String userName; private Human human; private List permissions; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public Human getHuman() { return human; } public void setHuman(Human human) { this.human = human; } public List getPermissions() { return permissions; } public void setPermissions(List permissions) { this.permissions = permissions;
public class Thing { private Employee salesperson; private String comments; /** * @return Returns the salesperson. */ public Employee getSalesperson() { return salesperson; } /** * @param salesperson The salesperson to set. */ public void setSalesperson(Employee salesperson) { this.salesperson = salesperson; } /** * @return Returns the comments. */ public String getComments() { return comments; } /** * @param comments The comments to set. */ public void setComments(String comments) { this.comments = comments; } Long id; String name; /** * @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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/User.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/join/Thing.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Thing {
2
	private Long id;
2
	private 
3
	private String userName;
4
	private Human human;
5
	private List permissions;
6
	public Long getId() {
7
		return id;
8
	}
9
	public void setId(Long id) {
10
		this.id = id;
11
	}
3
Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson;
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
14
	public void setSalesperson(Employee salesperson) {
15
		this.salesperson = salesperson;
16
	}
17
	/**
18
	 * @return Returns the comments.
19
	 */
12
	public String getUserName() {
20
	public String getComments() {
13
		return userName;
21
		return 
14
	}
22
comments;
23
	}
24
	/**
25
	 * @param comments The comments to set.
26
	 */
15
	public void setUserName(String userName) {
27
	public void set
16
		this.userName = userName;
17
	}
18
	public Human getHuman() {
19
		return human;
20
	}
21
	public void setHuman(Human human) {
22
		this.human = human;
23
	}
28
Comments(String comments) {
29
		this.comments = comments;
30
	}
31
	Long id;
32
	String name;
33
	/**
34
	 * @return Returns the ID.
35
	 */
36
	public Long getId() {
37
		return id;
38
	}
39
	/**
40
	 * @param id The ID to set.
41
	 */
42
	public void setId(Long id) {
43
		this.id = id;
44
	}
45
	/**
46
	 * @return Returns the name.
47
	 */
24
	public List getPermissions() {
48
	public String getName() {
25
		return permissions;
49
		return 
26
	}
27
	
28
	public void setPermissions(List permissions) {
29
		this.permissions = permissions
50
name;
51
	}
52
	/**
53
	 * @param name The name to set.
54
	 */
55
	public void setName(String name) {
30
;
56
		this.name = name;
31
	
57
	
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