public class Componentizable { /** surrogate id */ private Integer _id; public String _nickName; /** component */ private Component _component; /** * @return */ public Integer getId() { return _id; } /** * @param integer */ public void setId(Integer integer) { _id = integer; } /** * @return */ public Component getComponent() { return _component; } /** * @param component */ public void setComponent(Component component) { _component = component; } /** * @return */ public String getNickName() { return _nickName; } /** * @param string */ public void setNickName(String string) { _nickName = string;
public class Object2 { private Long id; private String dummy; private MainObject belongsToMainObj; public Long getId() { return id; } public void setId(Long l) { this.id = l; } public String getDummy() { return dummy; } public void setDummy(String string) { dummy = string; } public MainObject getBelongsToMainObj() { return belongsToMainObj; } public void setBelongsToMainObj(MainObject object) { belongsToMainObj = object;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Componentizable.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Object2.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Componentizable {
1
public class 
2
	/** surrogate id */
3
	private Integer _id;
4
    
5
    public String _nickName;
6
	
7
	/** component */
8
    private Component _component;
9
    /**
10
     * @return
11
     */
12
    public Integer
2
Object2 {
3
	private Long id;
4
	private String dummy;
5
	private MainObject belongsToMainObj;
13
 getId() {
6
	public Long getId() {
14
        return _id;
7
		return id;
15
    }
16
    /**
17
     * @param integer
18
     */
19
    public void setId(Integer integer) {
20
        _id = integer;
21
    }
22
    /**
23
     * @return
24
     */
25
    public Component getComponent() {
26
        return _component;
27
    }
28
    /**
29
     * @param component
30
     */
31
    public void setComponent(Component component) {
32
        _component = component;
33
    }
34
    /**
35
     * @return
36
     */
37
    public String getNickName() {
38
        return _nickName;
39
    }
40
    /**
41
     * @param string
42
     */
43
    
8
	}
9
	public void setId(Long l) {
10
		this.id = l;
11
	}
12
	
13
	public String getDummy() {
14
		return dummy;
15
	}
16
	public void setDummy(String string) {
17
		dummy = string;
18
	}
19
	public MainObject getBelongsToMainObj() {
20
		return belongsToMainObj;
21
	}
44
public void setNickName(String string) {
22
	public void set
45
        _nickName = string;
46
    
23
BelongsToMainObj(MainObject object) {
24
		belongsToMainObj = object;
25
	
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