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 A { private Long id; private String name; private E forward; /** * Returns the id. * @return Long */ public Long getId() { return id; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the id. * @param id The id to set */ public void setId(Long id) { this.id = id; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name; } public E getForward() { return forward; } public void setForward(E e) { forward = e;
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/A.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class StringPropertyValue implements PropertyValue {
1
public class A {
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
name;
5
	private E forward;
6
	
7
	/**
8
	 * Returns the id.
9
	 * @return Long
10
	 */
11
	public Long getId() {
12
		return id;
13
	}
14
	
15
	/**
16
	 * Returns the name.
17
	 * @return String
18
	 */
10
	public Long getId() {
19
	public String getName() {
11
		return id;
20
		return 
12
	}
13

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

31
	
32
	/**
33
	 * Sets the name.
34
	 * @param name The name to set
35
	 */
21
	public void setValue(String value) {
36
	public void setName(String name) {
22
		this.value = value;
37
		this.name = name;
23
	}
38
	}
24

39
	
25
	public String asString() {
40
	public E getForward() {
26
		return valu
41
		return forward;
42
	}
43
	public void setForward(E e) {
27
e;
44
		forward = e;
28
	
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