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