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 ExceptionCheckingEntity { private Long id; private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/discriminator/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/check/ExceptionCheckingEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public class ExceptionCheckingEntity {
2
	private Employee salesperson;
2
	private 
3
	private String comments;
4
	/**
5
	 * @return Returns the salesperson.
6
	 */
7
	public Employee getSalesperson
3
Long id;
4
	private String name;
8
() {
5
	public Long getId() {
9
		return salesperson;
6
		return 
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
14
	public void setSalesperson(Employee salesperson
7
id;
8
	}
15
) {
9
	public void setId(Long id) {
16
		this.salesperson = salesperson;
10
		this.
17
	}
18
	/**
19
	 * @return Returns the comments.
20
	 */
11
id = id;
12
	}
13

21
	public String getComments() {
14
	public String getName() {
22
		return comments;
15
		return 
23
	}
24
	/**
25
	 * @param comments The comments to set.
26
	 */
16
name;
17
	}
18

27
	public void setComments(String comments) {
19
	public void setName(String name) {
28
		this.comments = comments;
20
		this.name = name;
29
	
21
	
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