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