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 Component { private String _name; private SubComponent _subComponent; /** * @return */ public String getName() { return _name; } /** * @param string */ public void setName(String string) { _name = string; } /** * @return */ public SubComponent getSubComponent() { return _subComponent; } /** * @param component */ public void setSubComponent(SubComponent component) { _subComponent = component
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/legacy/Component.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class BasicNameable implements Nameable {
1
public class 
2
	
3
	
2
Component {
4
private String name;
3
    private String _name;
5
	private Long id;
6
	
7
	/**
8
	 * @see Nameable#getName()
9
	 */
10
	
4
    
5
    private SubComponent _subComponent;
6
    /**
7
     * @return
8
     */
11
public String getName() {
9
    public String getName() {
12
		return name;
10
        return _name;
13
	}
14
	
15
	/**
16
	 * @see Nameable#setName()
17
	 */
18
	
11
    }
12
    /**
13
     * @param string
14
     */
19
public void setName(String n) {
15
    public void setName(String 
20
		name = n;
21
	}
22
	
23
	/**
24
	 * @see Nameable#getKey()
25
	 */
26
	public Long getKey() {
27
		return id;
28
	}
29
	
30
	/**
31
	 * @see Nameable#setKey()
32
	 */
33
	public void setKey(Long k) {
34
		id = k
16
string) {
17
        _name = string;
18
    }
19
    /**
20
     * @return
21
     */
22
    public SubComponent getSubComponent() {
23
        return _subComponent;
24
    }
25
    /**
26
     * @param component
27
     */
28
    public void setSubComponent(SubComponent component) {
29
        _subComponent = component
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