public class Suite { private Long id; private String location; private Set notes = new HashSet(); public Suite() { } public Suite(String location) { this.location = location; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getLocation() { return location; } public void setLocation(String location) { this.location = location; } public Set getNotes() { return notes; } public void setNotes(Set notes) { this.notes = notes;
public class Organization { private long id; private String name; private Collection employments; public Organization(String name) { this.name = name; employments = new HashSet(); } public Organization() {} /** * @return Returns the employments. */ public Collection getEmployments() { return employments; } /** * @param employments The employments to set. */ public void setEmployments(Collection employments) { this.employments = employments; } /** * @return Returns the id. */ public long getId() { return id; } /** * @param id The id to set. */ public void setId(long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/deletetransient/Suite.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/Organization.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Suite {
1
public class Organization {
2
	private Long id;
2
	private long id;
3
	private String location;
3
	private String 
4
	private Set note
4
name;
5
	private Collection employments;
6
	public Organization(String name) {
7
		this.name = name;
5
s = new HashSet();
8
		employments = new HashSet();
6

9
	}
7
	public Suite() {
10
	public 
8
	}
9
	public Suite(String location) {
10
		this.location = location;
11
	}
12

11
Organization() {}
12
	/**
13
	 * @return Returns the employments.
14
	 */
13
	public Long getId() {
15
	public Collection getEmployments() {
14
		return id;
16
		return 
15
	}
16
	public void setId(Long id
17
employments;
18
	}
19
	/**
20
	 * @param employments The employments to set.
21
	 */
17
) {
22
	public void setEmployments(Collection employments) {
18
		this.id = id;
23
		this.
19
	}
20

24
employments = employments;
25
	}
26
	/**
27
	 * @return Returns the id.
28
	 */
21
	public String getLocation() {
29
	public long getId() {
22
		return location;
30
		return 
23
	}
24
	public void setLocation(String location
31
id;
32
	}
33
	/**
34
	 * @param id The id to set.
35
	 */
25
) {
36
	public void setId(long id) {
26
		this.location = location;
37
		this.
27
	}
28

38
id = id;
39
	}
40
	/**
41
	 * @return Returns the name.
42
	 */
29
	public Set getNotes() {
43
	public String getName() {
30
		return notes;
44
		return n
31
	}
32

45
ame;
46
	}
47
	/**
48
	 * @param name The name to set.
49
	 */
33
	public void setNotes(Set notes) {
50
	public void setName(String name) {
34
		this.notes = notes;
51
		this.name = name;
35
	
52
	
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