public class Customer extends Person { 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;
public class Competition { private Integer id; private List competitors = new ArrayList(); public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public List getCompetitors() { return competitors; } public void setCompetitors(List competitors) { this.competitors = competitors;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/join/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Competition.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public class Competition {
2
	private Employee salesperson;
2
	private Integer id;
3

3
	private String comments;
4
	private 
4
	/**
5
	 * @return Returns the salesperson.
6
	 */
7
	public Employee getSalesperson
5
List competitors = new ArrayList();
8
() {
6
	public Integer getId() {
9
		return salesperson;
7
		return 
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
14
	public void setSalesperson(Employee salesperson
8
id;
9
	}
15
) {
10
	public void setId(Integer id) {
16
		this.salesperson = salesperson;
11
		this.
17
	}
18
	/**
19
	 * @return Returns the comments.
20
	 */
12
id = id;
13
	}
14

21
	public String getComments() {
15
	public List getCompetitors() {
22
		return comments;
16
		return com
23
	}
24
	/**
25
	 * @param comments The comments to set.
26
	 */
17
petitors;
18
	}
19

27
	public void setComments(String comments) {
20
	public void setCompetitors(List competitors) {
28
		this.comments = comments;
21
		this.competitors = competitors;
29
	
22
	
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