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;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Competition.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass2/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Competition {
1
public class Customer extends Person {
2
	private Integer id;
2
	private 
3

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

18
salesperson = salesperson;
19
	}
20
	/**
21
	 * @return Returns the comments.
22
	 */
14
	public List getCompetitors() {
23
	public String getComments() {
15
		return competitors;
24
		return comments;
16
	}
25
	}
17

26
	/**
27
	 * @param comments The comments to set.
28
	 */
18
	public void setCompetitors(List competitors) {
29
	public void setComments(String comments) {
19
		this.competitors = competitors;
30
		this.comments = comments;
20
	
31
	
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