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 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/join/Thing.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 Thing {
1
public class 
2
	private Employee salesperson
2
Several implements Serializable {
3
	private String id;
4
	private String prop;
3
;
5
	private Single single;
4
	private String comments;
6
	private String 
7
string;
5
	/**
8
	/**
6
	 * @return Returns the salesperson.
9
	 * Returns the 
7
	 */
8
	public Employee getSalesperson
10
id.
11
	 * @return String
12
	 */
9
() {
13
	public String getId() {
10
		return salesperson;
14
		return id;
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 prop.
20
	 * @return String
21
	 */
22
	public String getProp() {
18
;
23
		return prop;
19
	}
24
	}
20
	
25
	
21
/**
26
	/**
22
	 * @return Returns the comments.
27
	 * Returns the single.
28
	 * @return Single
23
	 */
29
	 */
24
	public String getComments() {
30
	public Single getSingle() {
25
		return comments;
31
		return single;
26
	}
32
	}
27
	
33
	
28
/**
34
	/**
29
	 * @param comments The comments
35
	 * Sets the id.
30
 to set.
36
	 * @param id The id to set
31
	 */
37
	 */
32
	public void setComments(String comments) {
38
	public void set
33
		this.comments = comments
39
Id(String id) {
34
;
40
		this.id = id;
35
	}
41
	}
42
	
36
	Long id;
43
	
37
	String name;
38
	/**
39
	 * @return Returns the ID.
40
	 */
41
	public Long getId() {
42
		return id
44
/**
45
	 * Sets the prop.
46
	 * @param prop The prop to set
47
	 */
48
	public void setProp(String prop) {
43
;
49
		this.prop = prop;
44
	}
50
	}
45
	
51
	
46
/**
52
	/**
47
	 * @param id The ID
53
	 * Sets the single.
48
 to set.
54
	 * @param single The single to set
49
	 */
55
	 */
50
	public void setId(Long id) {
56
	public void setSingle(Single single) {
51
		this.id = id;
57
		this.single = single;
52
	}
58
	}
53
	
59
	
54
/**
60
	/**
55
	 * @return Returns the name.
61
	 * Returns the string.
62
	 * @return String
56
	 */
63
	 */
57
	public String getName() {
64
	public String getString() {
58
		return name;
65
		return string;
59
	}
66
	}
60
	
67
	
61
/**
68
	/**
62
	
69
	 * Sets the string.
63
 * @param name The name to set.
70
	 * @param string The string to set
64
	 */
71
	 */
65
	public void setName(String name) {
72
	public void setString(String string) {
66
		this.name = name;
73
		this.string = string;
67
	
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