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 Y { private Long id; private String x; private X theX; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the x. * @return String */ public String getX() { return x; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the x. * @param x The x to set */ public void setX(String x) { this.x = x; } /** * @return */ public X getTheX() { return theX; } /** * @param x */ public void setTheX(X x) { theX = x;
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/Y.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
Y {
3
	private Long id;
4
	private String x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
13
 getId() {
10
	public Long getId() {
14
        return _id;
11
		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
    public void setNickName(String string) {
44
        _nickName = string;
45
    
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
17
	public String getX() {
18
		return x;
19
	}
20
	/**
21
	 * Sets the id.
22
	 * @param id The id to set
23
	 */
24
	public void setId(Long id) {
25
		this.id = id;
26
	}
27
	/**
28
	 * Sets the x.
29
	 * @param x The x to set
30
	 */
31
	public void setX(String x) {
32
		this.x = x;
33
	}
34
	/**
35
	 * @return
36
	 */
37
	public X getTheX() {
38
		return theX;
39
	}
40
	/**
41
	 * @param x
42
	 */
43
	public void setTheX(X x) {
44
		theX = x;
45
	
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