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 Person { private Long id; private String name; private String personId; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public String getPersonId() { return personId; } public void setPersonId(String personId) { this.personId = personId
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/propertyref/inheritence/union/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static final class Ternary {
1
public class Per
2
	
2
son {
3
	private String name;
3
	private Long id;
4
		private Foo foo;
4
	private 
5
		private Glarch glarch;
6
	
5
String name;
6
	private String personId;
7
	/**
7
	/**
8
		 * Returns the foo.
8
	 * @return Returns the 
9
		 * @return Foo
10
	
9
id.
11
	 */
10
	 */
12
		public Foo getFoo() {
11
	public Long getId() {
13
			return foo;
12
		return 
14
		}
15
		
16
	
13
id;
14
	}
17
	/**
15
	/**
18
		 * Returns the glarch.
16
	 * 
19
		 * @return Glarch
20
	
17
@param id The id to set.
21
	 */
18
	 */
22
		public Glarch getGlarch() {
19
	public void setId(Long id) {
23
			return glarch;
20
		
24
		}
25
		
26
	
21
this.id = id;
22
	}
27
	/**
23
	/**
28
		 * Returns the name.
24
	 * @return Returns the name.
29
		 * @return String
30
		 */
25
	 */
31
		public String getName() {
26
	public String getName() {
32
			return name;
27
		return name;
33
		}
28
	}
34
		
29
	
35
		/**
36
		 * Sets the foo.
37
	
30
/**
38
	 * @param foo The foo to set
31
	 * @param name The name to set.
39
		 */
32
	 */
40
		public void setFoo(Foo foo) {
33
	public void setName(String name) {
41
			this.foo = foo;
34
		this.
42
		}
43
		
44
		/**
45
		 * Sets the glarch.
46
		 * @param glarch The glarch to set
47
		 */
48
		public void setGlarch(Glarch glarch
35
name = name;
36
	}
49
) {
37
	public String getPersonId() {
50
			this.glarch = glarch;
38
		
51
		}
52
		
53
		/**
54
		 * Sets the name.
55
		 * @param name The name to set
56
		 */
57
	
39
return personId;
40
	}
58
	public void setName(String name) {
41
	public void setPersonId(String personId) {
59
			this.name = name
42
		this.personId = personId
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