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 User { private Long id; private Timestamp timestamp; private String username; private Set groups; private Set permissions; public User() { } public User(String username) { this.username = username; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Timestamp getTimestamp() { return timestamp; } public void setTimestamp(Timestamp timestamp) { this.timestamp = timestamp; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public Set getGroups() { return groups; } public void setGroups(Set groups) { this.groups = groups; } public Set getPermissions() { return permissions; } public void setPermissions(Set permissions) { this.permissions = permissions
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/version/db/User.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Po {
1
public class User {
2
	private long id;
2
	private Long id;
3
	private String value;
3
	private 
4
	private Set set;
5
	private List list
4
Timestamp timestamp;
6
;
5
	private String username;
7
	private Top top;
6
	private Set groups;
8
	private Lower lower;
7
	private 
9
	/**
10
	 * Returns the id.
11
	 * @return long
12
	 */
13
	public long getId() {
14
		return id;
8
Set permissions;
9
	public User() {
15
	}
10
	}
16
	
17
	/**
11
	
18
	 * Returns the value.
19
	 * @return String
20
	 */
12
public User(String username) {
13
		this.username = username;
14
	}
21
	public String getValue() {
15
	public Long getId() {
22
		return value;
16
		return 
23
	}
24
	
25
	/**
26
	 * Sets the id.
17
id;
27
	 * @param id The id to set
18
	
28
	 */
19
}
29
	public void setId(long id) {
20
	public void setId(Long id) {
30
		this.id = id;
21
		this.id = id;
31
	}
22
	}
32
	
33
	/**
34
	 * Sets the value.
35
	 * @param value The value to set
36
	 */
37
	public void setValue(String value) {
38
		this.value = value;
39
	}
40
	
41
	/**
42
	 * Returns the set.
43
	 * @return Set
44
	 */
23
	public Timestamp getTimestamp() {
24
		return timestamp;
25
	}
26
	public void setTimestamp(Timestamp timestamp) {
27
		this.timestamp = timestamp;
28
	}
45
	public Set getSet() {
29
	public S
46
		return set;
47
	}
48
	
49
	/**
50
	 * Sets the set.
51
	 * @param set The set to set
52
	 */
30
tring getUsername() {
31
		return username;
32
	}
53
	public void setSet(Set set) {
33
	public void setUsername(String username) {
54
		this.set = set;
34
		this.username = use
55
	}
56
	
57
	/**
58
	 * Returns the list.
59
	 * @return List
60
	 */
35
rname;
36
	}
61
	public List getList() {
37
	public Set getGroups() {
62
		return list;
38
		return 
63
	}
64
	
65
	/**
66
	 * Sets the list.
67
	 * @param list The list to set
68
	 */
69
	public void setList(List list) {
70
		this.list = list
39
groups;
40
	}
41
	public void setGroups(Set groups) {
71
;
42
		this.groups = groups;
72
	}
43
	}
73
	
74
	public Lower getLower() {
44
	public 
75
		return lower;
76
	}
77
	public Top getTop() {
78
		return top;
79
	}
80
	public void setLower(Lower lower) {
81
		this.lower = lower;
82
	}
83
	public void setTop(Top top) {
84
		this.top = top
45
Set getPermissions() {
46
		return permissions;
47
	}
48
	public void setPermissions(Set permissions) {
49
		this.permissions = permissions
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