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/discriminator/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
		 * Returns the glarch.
16
		 * @return Glarch
14
	 */
17
		 */
15
	public void setTitle(String title) {
18
		public 
16
		this.title = title
19
Glarch getGlarch() {
17
;
20
			return glarch;
18
	}
21
		}
19
	
22
		
20
/**
23
		/**
21
	 * @return Returns the manager.
24
		 * Returns the 
25
name.
26
		 * @return String
22
	 */
27
		 */
23
	public Employee getManager() {
28
		public String getName() {
24
		return manager;
29
			return name;
25
	}
30
		}
26
	/**
31
	
27
	 * @param manager The manager
32
	
33
		/**
34
		 * Sets the foo.
28
 to set.
35
		 * @param foo The foo to set
29
	 */
36
		 */
30
	public void setManager(Employee manager) {
37
		public void setFoo(Foo foo) {
31
		this.manager = manager;
38
			this.foo = foo;
32
	}
39
		}
33
	
40
		
34
/**
41
		/**
35
	 * @return Returns the salary.
42
		 * Sets the glar
43
ch.
44
		 * @param glarch The glarch to set
36
	 */
45
		 */
37
	public BigDecimal getSalary() {
46
		public void setGlarch(Glarch glarch) {
38
		return salary;
47
			this.glarch = glarch;
39
	}
48
		}
40
	/**
49
	
50
	
51
		/**
52
		 * Sets the name.
41
	 * @param salary The salary to set.
53
		 * @param name The name to set
42
	 */
54
		 */
43
	public void setSalary(BigDecimal salary) {
55
		public void setName(String name) {
44
		this.salary = salary;
56
			this.name = name;
45
	
57
		
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