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