public class MyInterfaceImpl implements MyInterface { private String key1; private String key2; private String name; public String getKey1() { return key1; } public void setKey1(String key1) { this.key1 = key1; } public String getKey2() { return key2; } public void setKey2(String key2) { this.key2 = key2; } public String getName() { return name; } public void setName(String name) { this.name = name;
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/abstractembeddedcomponents/cid/MyInterfaceImpl.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 MyInterfaceImpl implements MyInterface {
1
public 
2
static final class Ternary {
2
	private String key1;
3
		private String 
4
name;
3
	private String key2;
5
		private 
4
	private String name;
5
	public String getKey1
6
Foo foo;
7
		private Glarch glarch;
8
		/**
9
		 * Returns the foo.
10
		 * @return Foo
11
		 */
6
() {
12
		public Foo getFoo() {
7
		return key1;
13
			return 
8
	}
9
	public void setKey1(String key1) {
10
		this.key1 = key1;
11
	}
12

14
foo;
15
		}
16
		
17
		/**
18
		 * Returns the glarch.
19
		 * @return Glarch
20
		 */
21
		public Glarch getGlarch() {
22
			return glarch;
23
		}
24
		
25
		/**
26
		 * Returns the name.
27
		 * @return String
28
		 */
13
	public String getKey2() {
29
		public String getName() {
14
		return key2;
30
			return 
15
	}
16
	public void setKey2(String key2
31
name;
32
		}
33
		
34
		/**
35
		 * Sets the foo.
36
		 * @param foo The foo to set
37
		 */
17
) {
38
		public void setFoo(Foo foo) {
18
		this.key2 = key2;
39
			this.
19
	}
20
	public String getName(
40
foo = foo;
41
		}
42
		
43
		/**
44
		 * Sets the glarch.
45
		 * @param glarch The glarch to set
46
		 */
21
) {
47
		public void setGlarch(Glarch glarch) {
22
		return name;
48
		
23
	}
49
	this.glarch = glarch;
50
		}
51
		
52
		/**
53
		 * Sets the name.
54
		 * @param name The name to set
55
		 */
24
	public void setName(String name) {
56
		public void setName(String name) {
25
		this.name = name;
57
			this.name = name;
26
	
58
		
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