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
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/legacy/Multi.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 static final class Component {
1
public class Customer extends Person {
2
		private Calendar cal;
2
	private Employee salesperson;
3
		private Float floaty;
3
	private String comments;
4
	
5
	/**
4
	/**
6
		 * Returns the cal.
5
	 * @return Returns the sal
7
		 * @return Calendar
8
	
6
esperson.
9
	 */
7
	 */
10
		public Calendar getCal() {
8
	public Employee getSalesperson() {
11
			return cal;
9
		return salesperson;
12
		}
10
	}
13
		
11
	
14
		/**
15
		 * Sets the cal.
16
	
12
/**
17
	 * @param cal The cal to set
13
	 * @param salesperson The salesperson to set.
18
		 */
14
	 */
19
		public void setCal(Calendar cal) {
15
	public void setSalesperson(Employee salesperson) {
20
			this.cal = cal;
16
		this.salesperson = salesperson;
21
		}
17
	}
22
		
18
	
23
		/**
19
/**
24
		 * Returns the floaty.
20
	 * @return Returns the 
25
		 * @return Float
26
	
21
comments.
27
	 */
22
	 */
28
		public Float getFloaty() {
23
	public String getComments() {
29
			return floaty;
24
		return comments;
30
		}
25
	}
31
		
26
	
32
		/**
33
		 * Sets the floaty.
34
	
27
/**
35
	 * @param floaty The floaty to set
28
	 * @param comments The comments to set.
36
		 */
29
	 */
37
		public void setFloaty(Float floaty) {
30
	public void setComments(String comments) {
38
			this.floaty = floaty
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