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 abstract class ItemImpl implements Item { private Long id; private 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
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/extendshbm/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interfaceproxy/ItemImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public abstract class ItemImpl implements Item {
2
	private Employee salesperson;
2
	private Long id;
3
	private String comments;
3
	private String 
4
name;
4
	/**
5
	/**
5
	 * @return Returns the salesperson.
6
	 * @return Returns the id.
6
	 */
7
	 */
7
	public Employee getSalesperson() {
8
	public Long getId() {
8
		return salesperson;
9
		return id;
9
	}
10
	}
10
	/**
11
	/**
11
	 * @param salesperson The salesperson to set.
12
	 * @param id The id to set.
12
	 */
13
	 */
13
	public void setSalesperson(Employee salesperson) {
14
	public void set
14
		this.salesperson = salesperson
15
Id(Long id) {
15
;
16
		this.id = id;
16
	}
17
	}
17
	/**
18
	/**
18
	 * @return Returns the comments.
19
	 * @return Returns the name.
19
	 */
20
	 */
20
	public String getComments() {
21
	public String getName() {
21
		return comments;
22
		return name;
22
	}
23
	}
23
	/**
24
	/**
24
	 * @param comments The comments to set.
25
	 * @param name The name to set.
25
	 */
26
	 */
26
	public void setComments(String comments) {
27
	public void set
27
		this.comments = comments
28
Name(String name) {
29
		this.name = name
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