public class Thing { private Employee salesperson; private String comments; /** * @return Returns the salesperson. */ public Employee getSalesperson() { return salesperson; } /** * @param salesperson The salesperson to set. */ public void setSalesperson(Employee salesperson) { this.salesperson = salesperson; } /** * @return Returns the comments. */ public String getComments() { return comments; } /** * @param comments The comments to set. */ public void setComments(String comments) { this.comments = comments; } Long id; String name; /** * @return Returns the ID. */ public Long getId() { return id; } /** * @param id The ID to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name;
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/join/Thing.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 Thing {
1
public class 
2
	private Employee salesperson;
3
	private String comments
2
Circular {
3
	
4
	private String id;
5
	private Class clazz;
6
	private Circular other;
4
;
7
	private Object anyEntity;
8
	
5
	/**
9
	/**
6
	 * @return Returns the salesperson.
10
	 * 
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson
11
Constructor for Circular.
12
	 */
13
	public Circular() {
10
;
14
		super();
11
	}
15
	}
12
	
16
	
13
/**
17
	/**
14
	 * @param salesperson The salesperson to set.
18
	 * 
15
	 */
16
	public void setSalesperson(Employee salesperson) {
17
		this.salesperson = salesperson
19
Returns the clazz.
20
	 * @return Class
21
	 */
22
	public Class getClazz() {
18
;
23
		return clazz;
19
	}
24
	}
20
	
25
	
21
/**
26
	/**
22
	 * @return Returns the comments.
27
	 * Returns the id.
28
	 * @return String
23
	 */
29
	 */
24
	public String getComments() {
30
	public String getId() {
25
		return comments;
31
		return id;
26
	}
32
	}
27
	
33
	
28
/**
34
	/**
29
	 * @param comments The comments
35
	 * Sets the clazz.
30
 to set.
36
	 * @param clazz The clazz to set
31
	 */
37
	 */
32
	public void setComments(String comments) {
38
	public void setC
33
		this.comments = comments;
34
	}
35
	Lo
39
lazz(Class clazz) {
40
		this.clazz = clazz;
41
	}
42
	
43
	/**
44
	 * Sets the id.
45
	 * @param id The id to set
46
	 */
36
ng id;
47
	public void setId(String id
37
	String name;
48
) {
49
		this.id = id;
50
	}
51
	
38
	/**
52
	/**
39
	 * @return Returns the ID.
53
	 * Returns the 
40
	 */
41
	public Long getId
54
other.
55
	 * @return Circular
56
	 */
42
() {
57
	public Circular getOther() {
43
		return id;
58
		return other;
44
	}
59
	}
45
	
60
	
46
/**
61
	/**
47
	 * @param id The ID
62
	 * Sets the other.
48
 to set.
63
	 * @param other The other to set
49
	 */
64
	 */
50
	public void setId(Long id) {
65
	public void set
51
		this.id = id
66
Other(Circular other) {
52
;
67
		this.other = other;
53
	}
68
	}
54
	
69
	
55
/**
70
	/**
56
	 * @return Returns the name.
71
	 * Returns the 
57
	 */
58
	public String getName
72
anyEntity.
73
	 * @return Object
74
	 */
59
() {
75
	public Object getAnyEntity() {
60
		return name;
76
		return anyEntity;
61
	}
77
	}
62
	
78
	
63
/**
79
	/**
64
	 * @param name The name
80
	 * Sets the anyEntity.
65
 to set.
81
	 * @param anyEntity The anyEntity to set
66
	 */
82
	 */
67
	public void setName(String name) {
83
	public void setAnyEntity(Object anyEntity) {
68
		this.name = name;
84
		this.anyEntity = anyEntity;
69
	
85
	
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