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