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 MyEntity { private Long id; private String name; private MyEntity other; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public MyEntity getOther() { return other; } public void setOther(MyEntity other) { this.other = other
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/jpa/MyEntity.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Mammal extends Animal {
1
public class M
2
    private String mammalName;
3
    
2
yEntity {
3
	private Long id;
4
private String mammalName2;
4
	private String 
5
    private String mammalName3;
5
name;
6
	private MyEntity other;
7

6
	public String getMammalName() {
8
	public Long getId() {
7
		return mammalName;
9
		return 
8
	}
10
id;
11
	}
12

9
	public void setMammalName(String mammalName) {
13
	public void setId(Long id) {
10
		this.mammalName = mammalName;
14
		this.
11
	}
15
id = id;
16
	}
17

12
	public String getMammalName2() {
18
	public String getName() {
13
		return mammalName2;
19
		return name;
14
	}
20
	}
21

15
	public void setMammalName2(String mammalName2) {
22
	public void setName(String name) {
16
		this.mammalName2 = mammalName2;
23
		this.name = name;
17
	}
24
	}
25

18
	public String getMammalName3() {
26
	public MyEntity getOther() {
19
		return mammalName3;
27
		return 
20
	}
28
other;
29
	}
30

21
	public void setMammalName3(String mammalName3) {
31
	public void setOther(MyEntity other) {
22
		this.mammalName3 = mammalName3
32
		this.other = other
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