public class Lower extends Top { private int intprop; private String foo; private Set set; private List bag; private Top another; private Lower yetanother; private Po mypo; /** * Returns the intprop. * @return int */ public int getIntprop() { return intprop; } /** * Sets the intprop. * @param intprop The intprop to set */ public void setIntprop(int intprop) { this.intprop = intprop; } /** * Returns the foo. * @return String */ public String getFoo() { return foo; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(String foo) { this.foo = foo; } /** * 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 another. * @return Simple */ public Top getAnother() { return another; } /** * Returns the yetanother. * @return LessSimple */ public Lower getYetanother() { return yetanother; } /** * Sets the another. * @param another The another to set */ public void setAnother(Top another) { this.another = another; } /** * Sets the yetanother. * @param yetanother The yetanother to set */ public void setYetanother(Lower yetanother) { this.yetanother = yetanother; } /** * Returns the bag. * @return List */ public List getBag() { return bag; } /** * Sets the bag. * @param bag The bag to set */ public void setBag(List bag) { this.bag = bag; } /** * Returns the mypo. * @return Po */ public Po getMypo() { return mypo; } /** * Sets the mypo. * @param mypo The mypo to set */ public void setMypo(Po mypo) { this.mypo = mypo
public class Document { private Long id; private String author; private String title; private String summary; private String text; private PublicationDate pubDate; private int totalSales; /** * @return Returns the author. */ public String getAuthor() { return author; } /** * @param author The author to set. */ public void setAuthor(String author) { this.author = author; } /** * @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 summary. */ public String getSummary() { return summary; } /** * @param summary The summary to set. */ public void setSummary(String summary) { this.summary = summary; } /** * @return Returns the text. */ public String getText() { return text; } /** * @param text The text to set. */ public void setText(String text) { this.text = text; } /** * @return Returns the title. */ public String getTitle() { return title; } /** * @param title The title to set. */ public void setTitle(String title) { this.title = title; } public PublicationDate getPubDate() { return pubDate; } public void setPubDate(PublicationDate pubDate) { this.pubDate = pubDate; } public int getTotalSales() { return totalSales; } public void setTotalSales(int totalSales) { this.totalSales = totalSales
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Lower.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/optlock/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Lower extends Top {
1
public class Document {
2
	private int intprop;
2
	private Long id;
3
	private String foo;
3
	private String author;
4
	private Set set;
4
	private S
5
	private List bag;
6
	private Top another;
7
	private Lower yetanother;
8
	private Po mypo
5
tring title;
6
	private String summary;
7
	private String text;
8
	private PublicationDate pubDate;
9
;
9
	private int totalSales;
10
	/**
10
	/**
11
	 * Returns the intprop.
11
	 * @return Returns the 
12
	 * @return int
12
author.
13
	 */
13
	 */
14
	public int getIntprop() {
14
	public String getAuthor() {
15
		return intprop;
15
		return author;
16
	}
16
	}
17
	
17
	
18
	/**
18
/**
19
	 * Sets the intprop.
19
	 * 
20
	 * @param intprop The intprop to set
20
@param author The author to set.
21
	 */
21
	 */
22
	public void setIntprop(int intprop) {
22
	public void setAuthor(String author) {
23
		this.intprop = intprop;
23
		this.author = author;
24
	}
24
	}
25
	
25
	
26
	/**
26
/**
27
	 * Returns the foo.
27
	 * @return
28
	 * @return String
28
 Returns the id.
29
	 */
29
	 */
30
	public String getFoo() {
30
	public Long getId() {
31
		return foo;
31
		return id;
32
	}
32
	}
33
	
33
	
34
	/**
34
/**
35
	 * Sets the foo.
35
	
36
	 * @param foo The foo to set
36
 * @param id The id to set.
37
	 */
37
	 */
38
	public void setFoo(String foo) {
38
	public void setId(Long id) {
39
		this.foo = foo;
39
		this.id = id;
40
	}
40
	}
41
	
41
	
42
	/**
42
/**
43
	 * Returns the set.
43
	 * @return Returns the s
44
	 * @return Set
45
	 */
46
	public Set getSet
44
ummary.
45
	 */
47
() {
46
	public String getSummary() {
48
		return set;
47
		return summary;
49
	}
48
	}
50
	
49
	
51
	/**
50
/**
52
	 * Sets the set.
51
	 * 
53
	 * @param set The set to set
52
@param summary The summary to set.
54
	 */
53
	 */
55
	public void setSet(Set set) {
54
	public void setS
56
		this.set = set
55
ummary(String summary) {
57
;
56
		this.summary = summary;
58
	}
57
	}
59
	
58
	
60
	/**
59
/**
61
	 * Returns the another.
60
	 * @return Returns the 
62
	 * @return Simple
61
text.
63
	 */
62
	 */
64
	public Top getAnother() {
63
	public String getText() {
65
		return another;
64
		return text;
66
	}
65
	}
67
	
66
	
68
	/**
67
/**
69
	 * Returns the yetanother.
68
	 * 
70
	 * @return LessSimple
69
@param text The text to set.
71
	 */
70
	 */
72
	public Lower getYetanother() {
71
	public 
73
		return yetanother
72
void setText(String text) {
74
;
73
		this.text = text;
75
	}
74
	}
76
	
75
	
77
	/**
76
/**
78
	 * Sets the another.
77
	 * 
79
	 * @param another The another to set
80
	 */
81
	public void setAnother(Top another) {
82
		this.another = another
78
@return Returns the title.
79
	 */
80
	public String getTitle() {
83
;
81
		return title;
84
	}
82
	}
85
	
83
	
86
	/**
84
/**
87
	 * Sets the yetanother.
85
	 * 
88
	 * @param yetanother The yetanother to set
86
@param title The title to set.
89
	 */
87
	 */
90
	public void setYetanother(Lower yetanother) {
88
	public void setTitle(String title) {
91
		this.yetanother = yetanother;
89
		this.
92
	}
93
	
94
	/**
95
	 * Returns the bag.
96
	 * @return List
97
	 */
98
	public List getBag() {
99
		return bag;
100
	}
101
	
102
	/**
103
	 * Sets the bag.
104
	 * @param bag The bag to set
105
	 */
106
	public void setBag(List bag
90
title = title;
91
	}
92
	public PublicationDate getPubDate() {
93
		return pubDate;
94
	}
107
) {
95
	public void setPubDate(PublicationDate pubDate) {
108
		this.bag = bag;
96
		this.
109
	}
110
	
111
	/**
112
	 * Returns the mypo.
113
	 * @return Po
114
	 */
97
pubDate = pubDate;
98
	}
115
	public Po getMypo() {
99
	public int getTotalSales() {
116
		return mypo;
100
		return 
117
	}
118
	
119
	/**
120
	 * Sets the mypo.
121
	 * @param mypo The mypo to set
122
	 */
123
	public void setMypo(Po mypo) {
124
		this.mypo = mypo
101
totalSales;
102
	}
103
	public void setTotalSales(int totalSales) {
104
		this.totalSales = totalSales
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