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 Parent { private Long id; private String name; private Collection children = new HashSet(); /** * @return Returns the children. */ public Collection getChildren() { return children; } /** * @param children The children to set. */ public void setChildren(Collection children) { this.children = children; } /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return 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/onetomany/Parent.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
    
2
Parent {
3
	private Long id;
3
private String mammalName;
4
	private String name;
4
    private String mammalName2;
5
	private 
5
    private String mammalName3;
6
	public String getMammalName() {
7
		return mammalName;
8
	}
9
	public void setMammalName(String mammalName) {
10
		this.mammalName = mammalName;
11
	}
6
Collection children = new HashSet();
7
	/**
8
	 * @return Returns the children.
9
	 */
10
	public Collection getChildren() {
11
		return children;
12
	}
13
	/**
14
	 * @param children The children to set.
15
	 */
16
	public void setChildren(Collection children) {
17
		this.children = children;
18
	}
19
	/**
20
	 * @return Returns the id.
21
	 */
12
	public String getMammalName2() {
22
	public Long getId() {
13
		return mammalName2;
23
		return 
14
	}
15
	public void setMammalName2(String mammalName2) {
16
		this.mammalName2 = mammalName2;
17
	}
24
id;
25
	}
26
	/**
27
	 * @param id The id to set.
28
	 */
29
	public void setId(Long id) {
30
		this.id = id;
31
	}
32
	/**
33
	 * @return Returns the name.
34
	 */
18
	public String getMammalName3() {
35
	public String getName() {
19
		return mammalName3;
36
		return 
20
	}
37
name;
38
	}
39
	/**
40
	 * @param name The name to set.
41
	 */
21
	public void setMammalName3(String mammalName3) {
42
	public void setName(String name) {
22
		this.mammalName3 = mammalName3
43
		this.name = name
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