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