public class Mammal extends Animal { private String mammalName; private String mammalName2; private String mammalName3; public String getMammalName() { return mammalName; } public void setMammalName(String mammalName) { this.mammalName = mammalName; } public String getMammalName2() { return mammalName2; } public void setMammalName2(String mammalName2) { this.mammalName2 = mammalName2; } public String getMammalName3() { return mammalName3; } public void setMammalName3(String mammalName3) { this.mammalName3 = mammalName3;
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/collection/original/Mammal.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 Mammal extends Animal {
1
public 
2
    private String mammalName;
3
    private String mammalName2;
4
    private String mammalName3;
5
	public String getMammalName
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
		 */
6
() {
10
		public Foo getFoo() {
7
		return mammalName;
11
			return foo;
8
	}
12
		}
9
	public void setMammalName(String mammalName
13
		
14
		/**
15
		 * Returns the glarch.
16
		 * @return Glarch
17
		 */
10
) {
18
		public Glarch getGlarch() {
11
		this.mammalName = mammalN
19
			return glarch;
20
		}
21
		
22
		/**
12
ame;
23
		 * Returns the name.
13
	}
24
	
25
	 * @return String
26
		 */
14
	public String getMammalName2() {
27
		public String getName() {
15
		return mammalName2;
28
			return name;
16
	}
29
		}
17
	public void setMammalName2(String mammalName2
30
		
31
		/**
32
		 * Sets the foo.
33
		 * @param foo The foo to set
34
		 */
18
) {
35
		public void setFoo(Foo foo) {
19
		this.mammalName2 = mammalName2;
36
			this.
20
	}
21
	public String getMammalName3() {
22
		return mammalName3;
23
	}
37
foo = foo;
38
		}
39
		
40
		/**
41
		 * Sets the glarch.
42
		 * @param glarch The glarch to set
43
		 */
44
		public void setGlarch(Glarch glarch) {
45
			this.glarch = glarch;
46
		}
47
		
48
		/**
49
		 * Sets the name.
50
		 * @param name The name to set
51
		 */
24
	public void setMammalName3(String mammalName3) {
52
		public void setName(String name) {
25
		this.mammalName3 = mammalName3;
53
			this.name = name;
26
	
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