public class EntityWithCrazyCompositeKey { private CrazyCompositeKey id; private String name; public CrazyCompositeKey getId() { return id; } public void setId(CrazyCompositeKey id) { this.id = id; } 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/hql/EntityWithCrazyCompositeKey.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinedsubclass/Customer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class EntityWithCrazyCompositeKey {
1
public class Customer extends Person {
2
	private CrazyCompositeKey id;
2
	private 
3
	private String name;
4
	public CrazyCompositeKey getId() {
5
		return id;
6
	}
3
Employee salesperson;
4
	private String comments;
5
	/**
6
	 * @return Returns the salesperson.
7
	 */
8
	public Employee getSalesperson() {
9
		return salesperson;
10
	}
11
	/**
12
	 * @param salesperson The salesperson to set.
13
	 */
7
	public void setId(CrazyCompositeKey id) {
14
	public void set
8
		this.id = id;
9
	}
15
Salesperson(Employee salesperson) {
16
		this.salesperson = salesperson;
17
	}
18
	/**
19
	 * @return Returns the comments.
20
	 */
10
	public String getName() {
21
	public String getComments() {
11
		return name;
22
		return 
12
	}
23
comments;
24
	}
25
	/**
26
	 * @param comments The comments to set.
27
	 */
13
	public void setName(String name) {
28
	public void set
14
		this.name = name
29
Comments(String comments) {
30
		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