public class Part implements Serializable { private String name; private String description; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getName() { return name; } public void setName(String name) { this.name = name
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/orphan/Part.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 Part implements Serializable {
1
public class Customer extends Per
2
	private String name;
3
	private String description;
2
son {
3
	private Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
4
	public String getDescription() {
8
	public 
5
		return description;
6
	}
7
	public void setDescription(String descripti
9
Employee getSalesperson() {
10
		return salesperson;
11
	}
12
	/**
13
	 * @param salesperson The salesperson to set.
14
	 */
8
on) {
15
	public void setSalesperson(Employee salesperson) {
9
		this.description = description;
16
		this.
10
	}
17
salesperson = salesperson;
18
	}
19
	/**
20
	 * @return Returns the comments.
21
	 */
11
	public String getName() {
22
	public String getComments() {
12
		return name;
23
		return 
13
	}
24
comments;
25
	}
26
	/**
27
	 * @param comments The comments to set.
28
	 */
14
	public void setName(String name) {
29
	public void set
15
		this.name = name
30
Comments(String comments) {
31
		this.comments = comments
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