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