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 Circular { private String id; private Class clazz; private Circular other; private Object anyEntity; /** * Constructor for Circular. */ public Circular() { super(); } /** * Returns the clazz. * @return Class */ public Class getClazz() { return clazz; } /** * Returns the id. * @return String */ public String getId() { return id; } /** * Sets the clazz. * @param clazz The clazz to set */ public void setClazz(Class clazz) { this.clazz = clazz; } /** * Sets the id. * @param id The id to set */ public void setId(String id) { this.id = id; } /** * Returns the other. * @return Circular */ public Circular getOther() { return other; } /** * Sets the other. * @param other The other to set */ public void setOther(Circular other) { this.other = other; } /** * Returns the anyEntity. * @return Object */ public Object getAnyEntity() { return anyEntity; } /** * Sets the anyEntity. * @param anyEntity The anyEntity to set */ public void setAnyEntity(Object anyEntity) { this.anyEntity = anyEntity;
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/Circular.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Circular {
2
	
2
	
3
private Long id;
3
	private String id;
4
	private String userName;
4
	private 
5
	private Human human;
6
	private List permissions;
5
Class clazz;
6
	private Circular other;
7
	private Object anyEntity;
8
	
9
	/**
10
	 * Constructor for Circular.
11
	 */
12
	public Circular() {
13
		super();
14
	}
15
	
16
	/**
17
	 * Returns the clazz.
18
	 * @return Class
19
	 */
20
	public Class getClazz() {
21
		return clazz;
22
	}
23
	
24
	/**
25
	 * Returns the id.
26
	 * @return String
27
	 */
7
	public Long getId() {
28
	public String getId() {
8
		return id;
29
		return id;
9
	}
30
	}
10
	public void setId(Long id) {
11
		this.id = id
31
	
32
	/**
33
	 * Sets the clazz.
34
	 * @param clazz The clazz to set
35
	 */
36
	public void setClazz(Class clazz) {
12
;
37
		this.clazz = clazz;
13
	}
38
	}
39
	
14
	public String getUserName() {
40
	
15
		return userName;
16
	}
17
	public void setUserName(String userName) {
18
		this.userName = userName;
19
	}
20
	public Human getHuman() {
21
		return human;
22
	}
23
	public void setHuman(Human human
41
/**
42
	 * Sets the id.
43
	 * @param id The id to set
44
	 */
45
	public void setId(String id) {
46
		this.id = id;
47
	}
48
	
49
	/**
50
	 * Returns the other.
51
	 * @return Circular
52
	 */
53
	public Circular getOther() {
54
		return other;
55
	}
56
	
57
	/**
58
	 * Sets the other.
59
	 * @param other The other to set
60
	 */
24
) {
61
	public void setOther(Circular other) {
25
		this.human = human;
62
		this.
26
	}
27
	public List getPermissions() {
28
		return permissions;
29
	}
30
	
31
	public void setPermissions(List permissions) {
32
		this.permissions = permissions
63
other = other;
64
	}
65
	
66
	/**
67
	 * Returns the anyEntity.
68
	 * @return Object
69
	 */
70
	public Object getAnyEntity() {
71
		return anyEntity;
72
	}
73
	
74
	/**
75
	 * Sets the anyEntity.
76
	 * @param anyEntity The anyEntity to set
77
	 */
78
	public void setAnyEntity(Object anyEntity) {
33
;
79
		this.anyEntity = anyEntity;
34
	
80
	
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