public class Zoo { private Long id; private String name; private Classification classification; private Map animals; private Map mammals; private Address address; 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 Map getMammals() { return mammals; } public void setMammals(Map mammals) { this.mammals = mammals; } public Map getAnimals() { return animals; } public void setAnimals(Map animals) { this.animals = animals; } public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public Classification getClassification() { return classification; } public void setClassification(Classification classification) { this.classification = classification;
public class Po { private long id; private String value; private Set set; private List list; private Top top; private Lower lower; /** * Returns the id. * @return long */ public long getId() { return id; } /** * Returns the value. * @return String */ public String getValue() { return value; } /** * Sets the id. * @param id The id to set */ public void setId(long id) { this.id = id; } /** * Sets the value. * @param value The value to set */ public void setValue(String value) { this.value = value; } /** * Returns the set. * @return Set */ public Set getSet() { return set; } /** * Sets the set. * @param set The set to set */ public void setSet(Set set) { this.set = set; } /** * Returns the list. * @return List */ public List getList() { return list; } /** * Sets the list. * @param list The list to set */ public void setList(List list) { this.list = list; } public Lower getLower() { return lower; } public Top getTop() { return top; } public void setLower(Lower lower) { this.lower = lower; } public void setTop(Top top) { this.top = top;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/Zoo.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Po.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Zoo {
1
public class Po {
2
	private Long id;
2
	private long id;
3
	private String name;
3
	private String value;
4
	private Classification classification;
4
	private 
5
	private Map animals;
6
	private Map mammals;
7
	private Address address;
5
Set set;
6
	private List list;
7
	private Top top;
8
	private Lower lower;
9
	/**
10
	 * Returns the id.
11
	 * @return long
12
	 */
8
	public Long getId() {
13
	public long getId() {
9
		return id;
14
		return id;
10
	}
15
	}
16
	
17
	/**
18
	 * Returns the value.
19
	 * @return String
20
	 */
21
	public String getValue() {
22
		return value;
23
	}
24
	
25
	/**
26
	 * Sets the id.
27
	 * @param id The id to set
28
	 */
11
	public void setId(Long id) {
29
	public void setId(long id) {
12
		this.id = id;
30
		this.id = id;
13
	}
31
	}
32
	
14
	public String getName() {
33
	
15
		return name;
16
	}
34
/**
35
	 * Sets the value.
36
	 * @param value The value to set
37
	 */
17
	public void setName(String name) {
38
	public void setValue(String value) {
18
		this.name = name;
39
		this.
19
	}
40
value = value;
41
	}
42
	
43
	/**
44
	 * Returns the set.
45
	 * @return Set
46
	 */
20
	public Map getMammals() {
47
	public Set getSet() {
21
		return mammals;
48
		return 
22
	}
23
	public void setMammals(Map mammals) {
24
		this.mammals = mammals;
25
	}
49
set;
50
	}
51
	
52
	/**
53
	 * Sets the set.
54
	 * @param set The set to set
55
	 */
56
	public void setSet(Set set) {
57
		this.set = set;
58
	}
59
	
60
	/**
61
	 * Returns the list.
62
	 * @return List
63
	 */
26
	public Map getAnimals() {
64
	public 
27
		return animals;
28
	}
29
	public void setAnimals(Map animals
65
List getList() {
66
		return list;
67
	}
68
	
69
	/**
70
	 * Sets the list.
71
	 * @param list The list to set
72
	 */
30
) {
73
	public void setList(List list) {
31
		this.animals = animals;
74
		this.list = list;
32
	}
75
	}
76
	
33
	public Address getAddress() {
77
	public Lower getLower() {
34
		return address;
78
		return lower;
35
	}
79
	}
36
	public void setAddress(Address address) {
80
	public 
37
		this.address = address;
38
	}
39
	public Classification getClassification() {
40
		return classification;
41
	}
42
	public void setClassification(Classification classification) {
43
		this.classification = classification
81
Top getTop() {
82
		return top;
83
	}
84
	public void setLower(Lower lower) {
85
		this.lower = lower;
86
	}
87
	public void setTop(Top top) {
44
;
88
		this.top = top;
45
	
89
	
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