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
		/**
32
/**
35
		 * Sets the foo.
33
	
36
		 * @param foo The foo to set
34
 * @param id The id to set.
37
		 */
35
	 */
38
		public void setFoo(Foo foo) {
36
	public void setId(Long id) {
39
			this.foo = foo;
37
		this.id = id;
40
		}
38
	}
41
		
39
	
42
		/**
40
/**
43
		 * Sets the glarch.
41
	 * 
44
		 * @param glarch The glarch to set
45
	
42
@return Returns the name.
46
	 */
43
	 */
47
		public void setGlarch(Glarch glarch) {
44
	public 
48
			this.glarch = glarch
45
String getName() {
49
;
46
		return name;
50
		}
47
	}
51
		
48
	
52
		/**
53
		 * Sets the name.
54
	
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;
59
		
54
	
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