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;
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/legacy/Circular.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 Circular {
1
public class 
2
	
2
Several implements Serializable {
3
	private String id;
3
	private String id;
4
	private Class clazz;
4
	private 
5
	private Circular other;
6
	private Object anyEntity;
7
	
8
	/**
9
	 * Constructor for Circular.
10
	 */
11
	public Circular() {
12
		super();
13
	}
14
	
5
String prop;
6
	private Single single;
7
	private String string;
15
	/**
8
	/**
16
	 * Returns the clazz.
9
	 * Returns the id.
17
	 * @return Class
10
	 * @return String
18
	 */
11
	 */
19
	public Class getClazz() {
12
	public String getId() {
20
		return clazz;
13
		return id;
21
	}
14
	}
22
	
15
	
23
	/**
16
	/**
24
	 * Returns the id.
17
	 * Returns the prop.
25
	 * @return String
18
	 * @return String
26
	 */
19
	 */
27
	public String getId() {
20
	public String getProp() {
28
		return id;
21
		return prop;
29
	}
22
	}
30
	
23
	
31
	/**
24
	/**
32
	 * Sets the clazz.
25
	 * Returns the single.
33
	 * @param clazz The clazz to set
26
	 * @
34
	 */
35
	public void setClazz(Class clazz) {
36
		this.clazz = clazz
27
return Single
28
	 */
29
	public Single getSingle() {
37
;
30
		return single;
38
	}
31
	}
39
	
32
	
40
	/**
33
	/**
41
	 * Sets the id.
34
	 * Sets the id.
42
	 * @param id The id to set
35
	 * @param id The id to set
43
	 */
36
	 */
44
	public void setId(String id) {
37
	public void setId(String id) {
45
		this.id = id;
38
		this.id = id;
46
	}
39
	}
47
	
40
	
48
	/**
41
	/**
49
	 * Returns the other.
42
	 * Sets the prop.
50
	 * @return Circular
43
	 * @
51
	 */
52
	public Circular getOther() {
53
		return other
44
param prop The prop to set
45
	 */
46
	public void setProp(String prop) {
54
;
47
		this.prop = prop;
55
	}
48
	}
56
	
49
	
57
	/**
50
	/**
58
	 * Sets the other.
51
	 * Sets the single.
59
	 * @param other The other to set
52
	 * @param single The single to set
60
	 */
53
	 */
61
	public void setOther(Circular other) {
54
	public void set
62
		this.other = other
55
Single(Single single) {
63
;
56
		this.single = single;
64
	}
57
	}
65
	
58
	
66
	/**
59
	/**
67
	 * Returns the anyEntity.
60
	 * Returns the string.
68
	 * @return Object
61
	 * @return String
69
	 */
62
	 */
70
	public Object getAnyEntity() {
63
	public String getString() {
71
		return anyEntity;
64
		return string;
72
	}
65
	}
73
	
66
	
74
	/**
67
	/**
75
	 * Sets the anyEntity.
68
	 * Sets the string.
76
	 * @param anyEntity The anyEntity to set
69
	 * @param string The string to set
77
	 */
70
	 */
78
	public void setAnyEntity(Object anyEntity) {
71
	public void set
79
		this.anyEntity = anyEntity
72
String(String string) {
80
;
73
		this.string = string;
81
	
74
	
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