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 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/legacy/Circular.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 Circular {
1
public class 
2
	
2
Single 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 String string;
7
	private Collection several = new HashSet();
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 
33
	 * @param clazz The clazz to set
34
	 */
35
	public void setClazz(Class clazz) {
36
		this.clazz = clazz
26
several.
27
	 * @return Set
28
	 */
29
	public Collection getSeveral() {
37
;
30
		return several;
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 several.
59
	 * @param other The other to set
52
	 * @param several The several to set
60
	 */
53
	 */
61
	public void setOther(Circular other) {
54
	public void set
62
		this.other = other
55
Several(Collection several) {
63
;
56
		this.several = several;
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) {
73
		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