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