public class Address { private Long id; private String info; private Set suites = new HashSet(); public Address() { } public Address(String info) { this.info = info; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getInfo() { return info; } public void setInfo(String info) { this.info = info; } public Set getSuites() { return suites; } public void setSuites(Set suites) { this.suites = suites;
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/Address.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 Address {
1
public class Organization {
2
	private Long id;
2
	private long id;
3
	private String info;
3
	private String name;
4
	private Set suite
4
	private Collection employments;
5
	public Organization(String name) {
6
		this.name = name;
5
s = new HashSet();
7
		employments = new HashSet();
6

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

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

23
employments = employments;
24
	}
25
	/**
26
	 * @return Returns the id.
27
	 */
21
	public String getInfo() {
28
	public long getId() {
22
		return info;
29
		return i
23
	}
24

30
d;
31
	}
32
	/**
33
	 * @param id The id to set.
34
	 */
25
	public void setInfo(String info) {
35
	public void setId(long id) {
26
		this.info = info;
36
		this.id = i
27
	}
28
	public Set getSuites
37
d;
38
	}
39
	/**
40
	 * @return Returns the name.
41
	 */
29
() {
42
	public String getName() {
30
		return suites;
43
		return 
31
	}
32

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