public class User { private String name; private String password; private Set actions = new HashSet(); private Calendar lastUpdated; private Calendar created; public User(String name, String password) { super(); this.name = name; this.password = password; } public User() { super(); } public Calendar getLastUpdated() { return lastUpdated; } public void setLastUpdated(Calendar lastUpdated) { this.lastUpdated = lastUpdated; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Set getActions() { return actions; } public void setActions(Set actions) { this.actions = actions; } public Calendar getCreated() { return created; } public void setCreated(Calendar created) { this.created = created;
public class Permission { private Long id; private Date timestamp; private String name; private String context; private String access; public Permission() { } public Permission(String name, String context, String access) { this.name = name; this.context = context; this.access = access; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Date getTimestamp() { return timestamp; } public void setTimestamp(Date timestamp) { this.timestamp = timestamp; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getContext() { return context; } public void setContext(String context) { this.context = context; } public String getAccess() { return access; } public void setAccess(String access) { this.access = access;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interceptor/User.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/version/db/Permission.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Permission {
2
	private String name
2
	private Long id;
3
;
3
	private Date timestamp;
4
	private String password;
4
	private String name;
5
	private Set actions = new HashSet();
5
	private S
6
	private Calendar lastUpdated;
7
	private Calendar created;
8
	
9
	public User(String name, String password) {
10
		super();
6
tring context;
7
	private String access;
8
	public Permission() {
9
	}
10
	public Permission(String name, String context, String access) {
11
		this.name = name;
11
		this.name = name;
12
		this.password = password;
12
		this.
13
	}
14
	public User() {
15
		super()
13
context = context;
16
;
14
		this.access = access;
17
	}
15
	}
18
	public Calendar getLastUpdated() {
16
	public Long getId() {
19
		return lastUpdated;
17
		return id;
20
	}
18
	}
21
	public void setLastUpdated(Calendar lastUpdated) {
19
	public void set
22
		this.lastUpdated = lastUpdate
20
Id(Long id) {
23
d;
21
		this.id = id;
24
	}
22
	}
25
	public String getName() {
23
	public Date getTimestamp() {
26
		return name;
24
		return timestamp;
27
	}
25
	}
28
	public void setName(String name) {
26
	public void set
29
		this.name = n
27
Timestamp(Date timestamp) {
30
ame;
28
		this.timestamp = timestamp;
31
	}
29
	}
32
	public String getPassword() {
30
	public String getName() {
33
		return password;
31
		return name;
34
	}
32
	}
35
	public void setPassword(String password) {
33
	public void setName(String name) {
36
		this.password = password;
34
		this.name = name;
37
	}
35
	}
38
	public Set getActions() {
36
	public String getContext() {
39
		return actions;
37
		return context;
40
	}
38
	}
41
	public void setActions(Set actions) {
39
	public void setContext(String context) {
42
		this.actions = actions;
40
		this.context = context;
43
	}
41
	}
44
	public Calendar getCreated() {
42
	public String getAccess() {
45
		return created;
43
		return access;
46
	}
44
	}
47
	public void setCreated(Calendar created) {
45
	public void setAccess(String access) {
48
		this.created = created;
46
		this.access = access;
49
	
47
	
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