public class Value { private Long id; private Definition definition; private LocalizedStrings localizedStrings = new LocalizedStrings(); private Value() { } public Value(Definition definition) { this(); this.definition = definition; definition.getValues().add( this ); } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public Definition getDefinition() { return definition; } public void setDefinition(Definition definition) { this.definition = definition; } public LocalizedStrings getLocalizedStrings() { return localizedStrings; } public void setLocalizedStrings(LocalizedStrings localizedStrings) { this.localizedStrings = localizedStrings
public class User implements Serializable { private String org; private String name; private Set groups = new HashSet(); public User(String name, String org) { this.org = org; this.name = name; } public User() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getOrg() { return org; } public void setOrg(String org) { this.org = org; } public Set getGroups() { return groups; } public void setGroups(Set groups) { this.groups = groups
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/cascading/collection/Value.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/manytomany/User.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Value {
1
public class User implements Serializable {
2
	
2
	private Long id;
3
	private 
3
	private Definition definition;
4
	private LocalizedStrings localizedStrings = new LocalizedStrings();
5
	private Value() {
6
	}
7
	public Value(Definition definition
4
String org;
5
	private String name;
6
	private Set groups = new HashSet();
8
) {
7
	public User(String name, String org) {
9
		this();
8
		this
10
		this.definition = definition;
11
		definition.getValues().add( this );
12
	}
13

9
.org = org;
10
		this.name = name;
11
	}
12
	public User() {
13
	}
14
	public Long getId() {
14
	public String getName() {
15
		return id;
15
		return 
16
	}
17

16
name;
17
	}
18
	public void setId(Long id) {
18
	public void setName(String name) {
19
		this.id = id;
19
		this.
20
	}
21
	public Definition getDefinition
20
name = name;
21
	}
22
() {
22
	public String getOrg() {
23
		return definition;
23
		return 
24
	}
25
	public void setDefinition(Definition definition
24
org;
25
	}
26
) {
26
	public void setOrg(String org) {
27
		this.definition = definition;
27
		this.
28
	}
29
	public LocalizedStrings getLocalizedString
28
org = org;
29
	}
30
s() {
30
	public Set getGroups() {
31
		return localizedStrings;
31
		return groups;
32
	}
32
	}
33

34
	public void setLocalizedStrings(LocalizedStrings localizedStrings) {
33
	public void setGroups(Set groups) {
35
		this.localizedStrings = localizedStrings
34
		this.groups = groups
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