public class BasicNameable implements Nameable { private String name; private Long id; /** * @see Nameable#getName() */ public String getName() { return name; } /** * @see Nameable#setName() */ public void setName(String n) { name = n; } /** * @see Nameable#getKey() */ public Long getKey() { return id; } /** * @see Nameable#setKey() */ public void setKey(Long k) { id = k
public class Employee implements Serializable { private Integer id; private Collection employers; public Integer getId() { return id; } public void setId(Integer integer) { id = integer; } public Collection getEmployers() { return employers; } public void setEmployers(Collection employers) { this.employers = employers
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/BasicNameable.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BasicNameable implements Nameable {
1
public class Employee implements Serializable {
2
	
2
	
3
	private String name;
3
private 
4
	private Long id;
5
	
6
	/**
7
	 * @see Nameable#getName()
8
	 */
9
	public String getName
4
Integer id;
5
	private Collection employers;
10
() {
6
	public Integer getId() {
11
		return name;
7
		return id;
12
	}
8
	}
13
	
14
	/**
15
	 * @see Nameable#setName()
16
	 */
17
	public void setName(String n
18
) {
9
	public void setId(Integer integer) {
19
		name = n;
10
		
20
	}
21
	
22
	/**
23
	 * @see Nameable#getKey()
24
	 */
11
id = integer;
12
	}
13
	
14
	
25
	public Long getKey() {
15
	public Collection getEmployers() {
26
		return id;
16
		return 
27
	}
28
	
29
	/**
30
	 * @see Nameable#setKey()
31
	 */
32
	public void setKey(Long k) {
33
		id = k
17
employers;
18
	}
19
	
20
	public void setEmployers(Collection employers) {
21
		this.employers = employers
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