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 Item { private String description; private Long id; private Category category; private Set bids = new HashSet(); private Set comments = new HashSet(); public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } Item() {} public Item(Category cat, String desc) { description = desc; category = cat; } public Set getBids() { return bids; } public void setBids(Set bids) { this.bids = bids; } public Set getComments() { return comments; } public void setComments(Set comments) { this.comments = comments; } public Category getCategory() { return category; } public void setCategory(Category category) { this.category = category
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/joinfetch/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class User {
1
public class Item {
2
	
2
	private String name;
3
	private String 
3
	private String passw
4
description;
5
	private Long id;
4
ord;
6
	private Category category;
5
	private Set actions = new HashSet();
7
	private Set bids = new HashSet();
6
	private Calendar lastUpdated;
8
	private 
7
	private Calendar created;
9
Set comments = new HashSet();
8
	
9
	public User(String name, String password) {
10
	public String 
10
		super();
11
		this.name = name;
12
		this.password = password
11
getDescription() {
13
;
12
		return description;
14
	}
13
	}
15
	public User() {
14
	public 
16
		super()
15
void setDescription(String description) {
17
;
16
		this.description = description;
18
	}
17
	}
19
	public Calendar getLastUpdated() {
18
	public Long getId() {
20
		return lastUpdated;
19
		return id;
21
	}
20
	}
22
	public void setLastUpdated(Calendar lastUpdated) {
21
	public void set
23
		this.lastUpdated = lastUpdated;
24
	}
25
	public String getName() {
26
		return name;
27
	}
28
	public void setName(
22
Id(Long id) {
23
		this.id = id;
24
	}
25
	Item() {}
29
String name) {
26
	public Item(Category cat, String desc) { 
30
		this.name = name
27
		description = desc; 
31
;
28
		category = cat;
32
	}
29
	}
33
	public String getPassword() {
30
	public Set getBids() {
34
		return password;
31
		return bids;
35
	}
32
	}
36
	public void setPassword(String password) {
33
	public void set
37
		this.password = password
34
Bids(Set bids) {
38
;
35
		this.bids = bids;
39
	}
36
	}
40
	public Set getActions() {
37
	public Set getComments() {
41
		return actions;
38
		return comments;
42
	}
39
	}
43
	public void setActions(Set actions) {
40
	public void setComments(Set comments) {
44
		this.actions = actions;
41
		this.comments = comments;
45
	}
42
	}
46
	public Calendar getCreated() {
43
	public Category getCategory() {
47
		return created;
44
		return category;
48
	}
45
	}
49
	public void setCreated(Calendar created) {
46
	public void setCategory(Category category) {
50
		this.created = created
47
		this.category = category
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