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 Single implements Serializable { private String id; private String prop; private String string; private Collection several = new HashSet(); /** * Returns the id. * @return String */ public String getId() { return id; } /** * Returns the prop. * @return String */ public String getProp() { return prop; } /** * Returns the several. * @return Set */ public Collection getSeveral() { return several; } /** * 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 several. * @param several The several to set */ public void setSeveral(Collection several) { this.several = several; } /** * 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/Single.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Single 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
String string;
6
	private Collection several = new HashSet();
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
	}
12
	public String
14
	
15
	/**
16
	 * Returns the prop.
17
	 * @return String
18
	 */
19
	public String getProp() {
20
		return prop;
21
	}
22
	
23
	/**
24
	 * Returns the several.
25
	 * @return Set
26
	 */
13
 getUserName() {
27
	public Collection getSeveral() {
14
		return userName;
28
		return 
15
	}
16
	public void setUserName(String userName) {
17
		this.userName = userName;
18
	}
19
	public Human getHuman() {
20
		return human;
21
	}
22
	public void setHuman(Human human) {
23
		this.human = human;
24
	}
29
several;
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 several.
50
	 * @param several The several to set
51
	 */
52
	public void setSeveral(Collection several) {
53
		this.several = several;
54
	}
55
	
56
	/**
57
	 * Returns the string.
58
	 * @return String
59
	 */
25
	public List getPermissions() {
60
	public 
26
		return permissions;
27
	}
28
	
29
	public void setPermissions(List permissions) {
30
		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) {
70
		this.string = string
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