public static final class Ternary { private String name; private Foo foo; private Glarch glarch; /** * Returns the foo. * @return Foo */ public Foo getFoo() { return foo; } /** * Returns the glarch. * @return Glarch */ public Glarch getGlarch() { return glarch; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(Foo foo) { this.foo = foo; } /** * Sets the glarch. * @param glarch The glarch to set */ public void setGlarch(Glarch glarch) { this.glarch = glarch; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name
public class Employee extends Person { private String title; private BigDecimal salary; private Employee manager; /** * @return Returns the title. */ public String getTitle() { return title; } /** * @param title The title to set. */ public void setTitle(String title) { this.title = title; } /** * @return Returns the manager. */ public Employee getManager() { return manager; } /** * @param manager The manager to set. */ public void setManager(Employee manager) { this.manager = manager; } /** * @return Returns the salary. */ public BigDecimal getSalary() { return salary; } /** * @param salary The salary to set. */ public void setSalary(BigDecimal salary) { this.salary = salary
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Container.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass2/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static final class Ternary {
1
public class Employee extends Person {
2
		private String name;
2
	private String title;
3
		private Foo foo;
3
	private BigDecimal salary;
4
		private Glarch glarch;
4
	private Employee manager;
5
		/**
5
	/**
6
		 * Returns the foo.
6
	 * @return Returns the 
7
		 * @return Foo
7
title.
8
		 */
8
	 */
9
		public Foo getFoo() {
9
	public String getTitle() {
10
			return foo;
10
		return title;
11
		}
11
	}
12
		
12
	
13
		/**
13
/**
14
		 * Returns the glarch.
14
	 * 
15
		 * @return Glarch
16
	
15
@param title The title to set.
17
	 */
16
	 */
18
		public Glarch getGlarch() {
17
	public 
19
			return glarch
18
void setTitle(String title) {
20
;
19
		this.title = title;
21
		}
20
	}
22
		
21
	
23
		/**
22
/**
24
		 * Returns the name.
23
	 * @return Returns the 
25
		 * @return String
26
	
24
manager.
27
	 */
25
	 */
28
		public String getName() {
26
	public Employee getManager() {
29
			return name;
27
		return manager;
30
		}
28
	}
31
		
29
	
32
		/**
30
/**
33
		 * Sets the foo.
31
	
34
		 * @param foo The foo to set
32
 * @param manager The manager to set.
35
		 */
33
	 */
36
		public void setFoo(Foo foo) {
34
	public void setManager(Employee manager) {
37
			this.foo = foo;
35
		this.manager = manager;
38
		}
36
	}
39
		
37
	
40
		/**
38
/**
41
		 * Sets the glarch.
39
	 * 
42
		 * @param glarch The glarch to set
40
@return Returns the salary.
43
		 */
41
	 */
44
		public void setGlarch(Glarch glarch) {
42
	public BigDecimal getSalary() {
45
			this.glarch = glarch;
43
		return salary;
46
		}
44
	}
47
		
45
	
48
		/**
46
/**
49
		 * Sets the name.
47
	
50
		 * @param name The name to set
48
 * @param salary The salary to set.
51
		 */
49
	 */
52
		public void setName(String name) {
50
	public void setSalary(BigDecimal salary) {
53
			this.name = name
51
		this.salary = salary
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