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 class Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x;
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/Y.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Mammal extends Animal {
1
public class 
2
    private String mammalName;
3
    private String mammalName2;
4
    private String mammalName3;
2
Y {
3
	private Long id;
4
	private String x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
10
	public Long getId() {
11
		return id;
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
5
	public String getMammalName() {
17
	public String getX() {
6
		return mammalName;
18
		return 
7
	}
8
	public void setMammalName(String mammalName) {
9
		this.mammalName = mammalName;
10
	}
11
	public String getMammalName2() {
12
		return mammalName2;
13
	}
14
	public void setMammalName2(String mammalName2) {
15
		this.mammalName2 = mammalName2;
16
	}
17
	public String getMammalName3() {
18
		return mammalName3;
19
	}
20
	public void setMammalName3(String mammalName3) {
21
		this.mammalName3 = mammalName3
19
x;
20
	}
21
	/**
22
	 * Sets the id.
23
	 * @param id The id to set
24
	 */
25
	public void setId(Long id) {
26
		this.id = id;
27
	}
28
	/**
29
	 * Sets the x.
30
	 * @param x The x to set
31
	 */
32
	public void setX(String x) {
33
		this.x = x;
34
	}
35
	/**
36
	 * @return
37
	 */
38
	public X getTheX() {
39
		return theX;
40
	}
41
	/**
42
	 * @param x
43
	 */
44
	public void setTheX(X x) {
22
;
45
		theX = x;
23
	
46
	
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