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 Identity implements Serializable { private String name; private String ssn; public String getSsn() { return ssn; } public void setSsn(String id) { this.ssn = 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/propertyref/component/complete/Identity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public class 
2
	private Employee salesperson;
3
	private String comments;
4
	/**
5
	 * @return Returns the salesperson.
6
	 */
2
Identity implements Serializable {
3
	private String name;
4
	private String ssn;
5

7
	public Employee getSalesperson() {
6
	public String getSsn() {
8
		return salesperson;
7
		return ssn;
9
	}
8
	}
10
	/**
11
	 * @param salesperson The salesperson to set.
12
	 */
13
	public void setSalesperson(Employee salesperson
14
) {
9
	public void setSsn(String id) {
15
		this.salesperson = salesperson;
10
		this.s
16
	}
17
	/**
18
	 * @return Returns the comments.
19
	 */
11
sn = id;
12
	}
20
	public String getComments() {
13
	public String getName() {
21
		return comments;
14
		return 
22
	}
23
	/**
24
	 * @param comments The comments to set.
25
	 */
15
name;
16
	}
26
	public void setComments(String comments) {
17
	public void setName(String name) {
27
		this.comments = comments
18
		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