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 Several implements Serializable { private String id; private String prop; private Single single; private String string; /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the single. * @return Single */ public Single getSingle() { return single; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Sets the prop. * @param prop The prop to set */ public void setProp(String prop) { this.prop = prop; } /** * Sets the single. * @param single The single to set */ public void setSingle(Single single) { this.single = single; } /** * Returns the string. * @return String */ public String getString() { return string; } /** * Sets the string. * @param string The string to set */ public void setString(String string) { this.string = string;
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/legacy/Several.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Several implements Serializable {
2
	private Long id;
2
	private String id;
3
	private String userName;
3
	private String prop;
4
	private Human human;
4
	private 
5
	private List permissions;
5
Single single;
6
	private String string;
7
	/**
8
	 * Returns the id.
9
	 * @return String
10
	 */
6
	public Long getId() {
11
	public String getId() {
7
		return id;
12
		return id;
8
	}
13
	}
9
	public void setId(Long id) {
10
		this.id = id;
11
	}
14
	
15
	/**
16
	 * Returns the prop.
17
	 * @return String
18
	 */
19
	public String getProp() {
20
		return prop;
21
	}
22
	
23
	/**
24
	 * Returns the single.
25
	 * @return Single
26
	 */
12
	public String getUserName() {
27
	public Single getSingle() {
13
		return userName;
28
		return 
14
	}
15
	public void setUserName(String userName) {
16
		this.userName = userName;
17
	}
18
	public Human getHuman() {
19
		return human;
20
	}
21
	public void setHuman(Human human) {
22
		this.human = human;
23
	}
29
single;
30
	}
31
	
32
	/**
33
	 * Sets the id.
34
	 * @param id The id to set
35
	 */
36
	public void setId(String id) {
37
		this.id = id;
38
	}
39
	
40
	/**
41
	 * Sets the prop.
42
	 * @param prop The prop to set
43
	 */
44
	public void setProp(String prop) {
45
		this.prop = prop;
46
	}
47
	
48
	/**
49
	 * Sets the single.
50
	 * @param single The single to set
51
	 */
52
	public void setSingle(Single single) {
53
		this.single = single;
54
	}
55
	
56
	/**
57
	 * Returns the string.
58
	 * @return String
59
	 */
24
	public List getPermissions() {
60
	public 
25
		return permissions;
26
	}
27
	
28
	public void setPermissions(List permissions) {
29
		this.permissions = permissions
61
String getString() {
62
		return string;
63
	}
64
	
65
	/**
66
	 * Sets the string.
67
	 * @param string The string to set
68
	 */
69
	public void setString(String string) {
30
;
70
		this.string = string;
31
	
71
	
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