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