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 static final class Component { private Calendar cal; private Float floaty; /** * Returns the cal. * @return Calendar */ public Calendar getCal() { return cal; } /** * Sets the cal. * @param cal The cal to set */ public void setCal(Calendar cal) { this.cal = cal; } /** * Returns the floaty. * @return Float */ public Float getFloaty() { return floaty; } /** * Sets the floaty. * @param floaty The floaty to set */ public void setFloaty(Float floaty) { this.floaty = floaty
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/joinedsubclass/Customer.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Multi.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Customer extends Person {
1
public static final class Component {
2
	private Employee salesperson;
2
		private Calendar cal;
3
	private String comments;
3
		private Float floaty;
4
	/**
4
		/**
5
	 * @return Returns the salesperson.
5
		 * Returns the cal
6
.
7
		 * @return Calendar
6
	 */
8
		 */
7
	public Employee getSalesperson() {
9
		public Calendar getCal() {
8
		return salesperson;
10
			return cal;
9
	}
11
		}
10
	/**
12
	
13
	
14
		/**
15
		 * Sets the cal.
11
	 * @param salesperson The salesperson to set.
16
		 * @param cal The cal to set
12
	 */
17
		 */
13
	public void setSalesperson(Employee salesperson) {
18
		public void setCal(Calendar cal) {
14
		this.salesperson = salesperson;
19
			this.cal = cal;
15
	}
20
		}
16
	
21
		
17
/**
22
		/**
18
	 * @return Returns the comments.
23
		 * Returns the 
24
floaty.
25
		 * @return Float
19
	 */
26
		 */
20
	public String getComments() {
27
		public Float getFloaty() {
21
		return comments;
28
			return floaty;
22
	}
29
		}
23
	/**
30
	
31
	
32
		/**
33
		 * Sets the floaty.
24
	 * @param comments The comments to set.
34
		 * @param floaty The floaty to set
25
	 */
35
		 */
26
	public void setComments(String comments) {
36
		public void setFloaty(Float floaty) {
27
		this.comments = comments
37
			this.floaty = floaty
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