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
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/X.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 X {
1
public class User {
2
	private long id;
2
	private Long id;
3
	private Y y;
3
	private 
4
	private List xxs = new ArrayList();
5
	/**
6
	 * Returns the id.
7
	 * @return long
8
	 */
9
	public long getId() {
10
		return id;
11
	}
12
	/**
13
	 * Returns the y.
14
	 * @return Y
15
	 */
16
	public Y getY() {
17
		return y;
18
	}
19
	/**
20
	 * Sets the id.
21
	 * @param id The id to set
22
	 */
23
	public void setId(long id) {
24
		this.id = id;
25
	}
26
	/**
27
	 * Sets the y.
28
	 * @param y The y to set
29
	 */
4
Timestamp timestamp;
5
	private String username;
6
	private Set groups;
7
	private Set permissions;
8
	public User() {
9
	}
10
	public User(String username) {
11
		this.username = username;
12
	}
13
	public Long getId() {
14
		return id;
15
	}
30
	public void setY(Y y) {
16
	public void setId(Long id) {
31
		this.y = y;
17
		this.id = id;
32
	}
18
	}
33
	
34
	public List getXxs() {
19
	public Timestamp getTimestamp() {
35
		return xxs;
20
		return timestamp;
36
	}
21
	}
37
	public void setXxs(List xxs) {
22
	public void set
38
		this.xxs = xxs;
39
	}
40
	public static class XX {
41
		private Long id;
42
		private X x;
43
		private XX() {
23
Timestamp(Timestamp timestamp) {
24
		this.timestamp = timestamp;
25
	}
26
	public String getUsername() {
27
		return username;
44
}
28
	}
45
	
46
	public XX(X x) {
29
	public void setUsername(String username) {
47
			this.x = x;
30
		this.username = username;
48
		}
31
	}
49
	
50
	public Long getId() {
32
	public Set getGroups() {
51
			return id;
33
		return groups;
52
		}
34
	}
53
		public void setId(Long id) {
35
	public void setGroups(Set groups) {
54
			this.id = id;
36
		this.groups = groups;
55
		}
37
	}
56
		public X getX() {
38
	public Set getPermissions() {
57
			return x;
39
		return permissions;
58
		}
40
	}
59
		public void setX(X x) {
41
	public void setPermissions(Set permissions) {
60
			this.x = x
42
		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