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