public class Person { private long id; private String name; private String address; private String zip; private String country; private char sex; /** * @return Returns the sex. */ public char getSex() { return sex; } /** * @param sex The sex to set. */ public void setSex(char sex) { this.sex = sex; } /** * @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 identity. */ public String getName() { return name; } /** * @param identity The identity to set. */ public void setName(String identity) { this.name = identity; } public String getSpecies() { return null; } /** * @return Returns the country. */ public String getCountry() { return country; } /** * @param country The country to set. */ public void setCountry(String country) { this.country = country; } /** * @return Returns the zip. */ public String getZip() { return zip; } /** * @param zip The zip to set. */ public void setZip(String zip) { this.zip = zip; } /** * @param address The address to set. */ public void setAddress(String address) { this.address = address; } public String getAddress() { return address
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/join/Person.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 Person {
1
public class Po {
2
	private long id;
2
	private long id;
3
	private String name;
3
	private String value;
4
	private String address;
4
	private Set set;
5
	private String zip;
5
	private List list;
6
	private String country;
6
	private 
7
	private char sex;
8
	
7
Top top;
8
	private Lower lower;
9
	/**
9
	/**
10
	 * @return Returns the sex.
10
	 * Returns the id.
11
	
11
	 * @return long
12
 */
12
	 */
13
	public char getSex() {
13
	public long getId() {
14
		return sex;
14
		return id;
15
	}
15
	}
16
	
16
	
17
/**
17
	/**
18
	 * @param sex The sex to set.
18
	 * 
19
	 */
20
	public void setSex(char sex) {
21
		this.sex = sex;
22
	}
23
	/**
24
	 * @return Returns the id.
19
Returns the value.
20
	 * @return String
25
	 */
21
	 */
26
	public long getId() {
22
	public String getValue() {
27
		return id;
23
		return value;
28
	}
24
	}
29
	
25
	
30
/**
26
	/**
31
	
27
	 * Sets the id.
32
 * @param id The id to set.
28
	 * @param id The id to set
33
	 */
29
	 */
34
	public void setId(long id) {
30
	public void setId(long id) {
35
		this.id = id;
31
		this.id = id;
36
	}
32
	}
37
	
33
	
38
/**
34
	/**
39
	 * @return Returns the identity.
35
	 * 
40
	 */
41
	public String getName() {
42
		return name;
43
	}
44
	/**
36
Sets the value.
45
	 * @param identity The identity to set.
37
	 * @param value The value to set
46
	 */
38
	 */
47
	public void setName(String identity) {
39
	public void setValue(String value) {
48
		this.name = identity;
40
		this.
49
	}
50
	public String getSpecies() {
51
		return null;
52
	}
53
	/**
41
value = value;
42
	}
43
	
44
	/**
45
	 * Returns the set.
54
	 * @return Returns the country.
46
	 * @return Set
55
	 */
56
	public String getCountry
47
	 */
57
() {
48
	public Set getSet() {
58
		return country;
49
		return set;
59
	}
50
	}
60
	
51
	
61
/**
52
	/**
62
	 * @param country The country
53
	 * Sets the set.
63
 to set.
54
	 * @param set The set to set
64
	 */
55
	 */
65
	public void setCountry(String country) {
56
	public void set
66
		this.country = country
57
Set(Set set) {
67
;
58
		this.set = set;
68
	}
59
	}
69
	
60
	
70
/**
61
	/**
71
	 * @return Returns the zip.
62
	 * Returns the list.
72
	
63
	 * @return List
73
 */
64
	 */
74
	public String getZip() {
65
	public List getList() {
75
		return zip;
66
		return list;
76
	}
67
	}
77
	
68
	
78
/**
69
	/**
79
	
70
	 * Sets the list.
80
 * @param zip The zip to set.
71
	 * @param list The list to set
81
	 */
72
	 */
82
	public void setZip(String zip) {
73
	public void setList(List list) {
83
		this.zip = zip;
74
		this.
84
	}
85
	/**
86
	 * @param address The address to set.
87
	 */
88
	public void setAddress(String address) {
89
		this.address = address
75
list = list;
76
	}
77
	
78
	public Lower getLower() {
79
		return lower;
80
	}
81
	public Top getTop() {
82
		return top;
83
	}
84
	public void setLower(Lower lower) {
90
;
85
		this.lower = lower;
91
	}
86
	}
92
	
93
	public String getAddress() {
87
	public 
94
		return address
88
void setTop(Top top) {
89
		this.top = top
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