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