public class Address { private Long id; private String street1; private String street2; private String city; private String state; private String zipCode; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getStreet1() { return street1; } public void setStreet1(String street1) { this.street1 = street1; } public String getStreet2() { return street2; } public void setStreet2(String street2) { this.street2 = street2; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getState() { return state; } public void setState(String state) { this.state = state; } public String getZipCode() { return zipCode; } public void setZipCode(String zipCode) { this.zipCode = zipCode;
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/component/cascading/toone/Address.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 Address {
1
public class Po {
2
	private Long id;
2
	private long id;
3
	private String street1;
3
	private String value;
4
	private String street2;
4
	private S
5
	private String city;
6
	private String state;
7
	private String zipCode;
8

5
et set;
6
	private List list;
7
	private Top top;
8
	private Lower lower;
9
	/**
10
	 * Returns the id.
11
	 * @return long
12
	 */
9
	public Long getId() {
13
	public long getId() {
10
		return id;
14
		return id;
11
	}
12

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
	 */
13
	public void setId(Long id) {
29
	public void setId(long id) {
14
		this.id = id;
30
		this.id = id;
15
	}
31
	}
16
	public String getStreet1() {
17
		return street1;
18
	}
19

32
	
33
	/**
34
	 * Sets the value.
35
	 * @param value The value to set
36
	 */
20
	public void setStreet1(String street1) {
37
	public void setValue(String value) {
21
		this.street1 = street1;
38
		this.
22
	}
23

39
value = value;
40
	}
41
	
42
	/**
43
	 * Returns the set.
44
	 * @return Set
45
	 */
24
	public String getStreet2() {
46
	public Set getSet() {
25
		return street2;
47
		return s
26
	}
27

48
et;
49
	}
50
	
51
	/**
52
	 * Sets the set.
53
	 * @param set The set to set
54
	 */
28
	public void setStreet2(String street2) {
55
	public void setSet(Set set) {
29
		this.street2 = street2;
56
		this.set = s
30
	}
31

57
et;
58
	}
59
	
60
	/**
61
	 * Returns the list.
62
	 * @return List
63
	 */
32
	public String getCity() {
64
	public List getList() {
33
		return city;
65
		return 
34
	}
35

66
list;
67
	}
68
	
69
	/**
70
	 * Sets the list.
71
	 * @param list The list to set
72
	 */
36
	public void setCity(String city) {
73
	public void setList(List list) {
37
		this.city = city;
74
		this.
38
	}
39
	public String getState
75
list = list;
76
	}
77
	
40
() {
78
	public Lower getLower() {
41
		return state;
79
		return 
42
	}
43
	public void setState(String state
80
lower;
81
	}
44
) {
82
	public Top getTop() {
45
		this.state = state;
83
		
46
	}
47
	public String getZipCode(
84
return top;
85
	}
48
) {
86
	public void setLower(Lower lower) {
49
		return zipCode;
87
		
50
	}
51
	public void setZipCode(String zipCode
88
this.lower = lower;
89
	}
52
) {
90
	public void setTop(Top top) {
53
		this.zipCode = zipCode;
91
		this.top = top;
54
	
92
	
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