public class User { private String userName; private List permissions = new ArrayList(); private List emailAddresses = new ArrayList(); private Map sessionData = new HashMap(); private Set sessionAttributeNames = new HashSet(); User() {} public User(String name) { userName = name; } public List getPermissions() { return permissions; } public void setPermissions(List permissions) { this.permissions = permissions; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public List getEmailAddresses() { return emailAddresses; } public void setEmailAddresses(List emailAddresses) { this.emailAddresses = emailAddresses; } public Map getSessionData() { return sessionData; } public void setSessionData(Map sessionData) { this.sessionData = sessionData; } public Set getSessionAttributeNames() { return sessionAttributeNames; } public void setSessionAttributeNames(Set sessionAttributeNames) { this.sessionAttributeNames = sessionAttributeNames;
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/collection/original/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 userName;
3
	private String description;
3
	private List permissions = new ArrayList();
4
	private L
4
	private List emailAddresses = new ArrayList();
5
	private Map sessionData
5
ong id;
6
	private Category category;
6
 = new HashMap();
7
	private Set bids = new HashSet();
7
	private Set sessionAttributeNames = new HashSet();
8
	private Set comments = new HashSet();
8
	User() {}
9
	public User(String name) {
9
	public String 
10
		userName = name;
11
	}
12
	public List getPermissions() {
10
getDescription() {
13
		return permissions;
11
		return description;
14
	}
12
	}
15
	public void setPermissions(List permissions) {
13
	public void setDescription(String description) {
16
		this.permissions = permissions;
14
		this.description = description;
17
	}
15
	}
18
	public String getUserName() {
16
	public Long getId() {
19
		return userName;
17
		return id;
20
	}
18
	}
21
	public void setUserName(String userName
19
	public void setId(Long id) {
20
		this.id = id;
21
	}
22
	Item() {}
22
) {
23
	public Item(Category cat, String desc) { 
23
		this.userName = userName
24
		description = desc; 
24
;
25
		category = cat;
25
	}
26
	}
26
	public List getEmailAddresses() {
27
	public Set getBids() {
27
		return emailAddresses;
28
		return bids;
28
	}
29
	}
29
	public void setEmailAddresses(List emailAddresses) {
30
	public void set
30
		this.emailAddresses = emailAddresse
31
Bids(Set bids) {
31
s;
32
		this.bids = bids;
32
	}
33
	}
33
	public Map getSessionData() {
34
	public Set getComments() {
34
		return sessionData;
35
		return comments;
35
	}
36
	}
36
	public void setSessionData(Map sessionData) {
37
	public void set
37
		this.sessionData = sessionData
38
Comments(Set comments) {
38
;
39
		this.comments = comments;
39
	}
40
	}
40
	public Set getSessionAttributeNames() {
41
	public 
41
		return sessionAttributeNames
42
Category getCategory() {
42
;
43
		return category;
43
	}
44
	}
44
	public void setSessionAttributeNames(Set sessionAttributeNames) {
45
	public void set
45
		this.sessionAttributeNames = sessionAttributeNames
46
Category(Category category) {
46
;
47
		this.category = category;
47
	
48
	
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