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 Document extends Item { private Blob content; private Calendar modified; private Calendar created; /** * @return Returns the created. */ public Calendar getCreated() { return created; } /** * @param created The created to set. */ public void setCreated(Calendar created) { this.created = created; } /** * @return Returns the modified. */ public Calendar getModified() { return modified; } /** * @param modified The modified to set. */ public void setModified(Calendar modified) { this.modified = modified; } /** * @return Returns the content. */ public Blob getContent() { return content; } /** * @param content The content to set. */ public void setContent(Blob content) { this.content = content;
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/mixed/Document.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class StringPropertyValue implements PropertyValue {
1
public class Document extends Item {
2
	private Long i
2
	private Blob content;
3
d;
3
	private Calendar modified;
4
	private String value;
4
	private 
5
	public StringPropertyValue() {
6
	}
7
	public StringPropertyValue(String value
5
Calendar created;
6
	/**
7
	 * @return Returns the created.
8
	 */
9
	public Calendar getCreated() {
10
		return created;
11
	}
12
	/**
13
	 * @param created The created to set.
14
	 */
8
) {
15
	public void setCreated(Calendar created) {
9
		this.value = value;
16
		this.
10
	}
11
	public Long getI
17
created = created;
18
	}
19
	/**
20
	 * @return Returns the modified.
21
	 */
12
d() {
22
	public Calendar getModified() {
13
		return id;
23
		return modified;
14
	}
24
	}
15
	public void setId(Long i
25
	/**
26
	 * @param modified The modified to set.
27
	 */
16
d) {
28
	public void setModified(Calendar modified) {
17
		this.id = id;
29
		this.modified = modified;
18
	}
30
	}
19
	public String getValue
31
	/**
32
	 * @return Returns the content.
33
	 */
20
() {
34
	public Blob getContent() {
21
		return value;
35
		return 
22
	}
23
	public void setValue(String value) {
24
		this.value = value;
25
	}
26
	public String asString(
36
content;
37
	}
38
	/**
39
	 * @param content The content to set.
40
	 */
27
) {
41
	public void setContent(Blob content) {
28
		return value;
42
		
29
	
43
this.content = content;
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