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) {
7
		this.value = value;
8
	}
9

4
x;
5
	private X theX;
6
	/**
7
	 * Returns the id.
8
	 * @return Long
9
	 */
10
	public Long getId() {
11
		return id;
12
	}
13
	/**
14
	 * Returns the x.
15
	 * @return String
16
	 */
10
	public Long getId() {
17
	public String getX() {
11
		return id;
18
		return 
12
	}
13

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

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