public class StringPropertyValue implements PropertyValue { private Long id; private String value; public StringPropertyValue() { } public StringPropertyValue(String value) { this.value = value; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public String asString() { return value
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/any/StringPropertyValue.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 StringPropertyValue implements PropertyValue {
1
public class Y {
2
	private Long id;
2
	private Long id;
3
	private String value;
3
	private String 
4
	public StringPropertyValue() {
5
	}
6
	public StringPropertyValue(String value
4
x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
7
) {
10
	public Long getId() {
8
		this.value = value;
11
		
9
	}
10

12
return id;
13
	}
14
	/**
15
	 * Returns the x.
16
	 * @return String
17
	 */
11
	public Long getId() {
18
	public String getX() {
12
		return id;
19
		return 
13
	}
14

20
x;
21
	}
22
	/**
23
	 * Sets the id.
24
	 * @param id The id to set
25
	 */
15
	public void setId(Long id) {
26
	public void setId(Long id) {
16
		this.id = id;
27
		this.id = id;
17
	}
28
	}
18
	public String getValue() {
19
		return value;
20
	}
21

29
	/**
30
	 * Sets the x.
31
	 * @param x The x to set
32
	 */
22
	public void setValue(String value) {
33
	public void setX(String x) {
23
		this.value = value;
34
		this.
24
	}
25
	public String asString
35
x = x;
36
	}
37
	/**
38
	 * @return
39
	 */
26
() {
40
	public X getTheX() {
27
		return value
41
		return theX;
42
	}
43
	/**
44
	 * @param x
45
	 */
46
	public void setTheX(X x) {
47
		theX = x
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