public class PropertySet { private Long id; private String name; private PropertyValue someSpecificProperty; private Map generalProperties = new HashMap(); public PropertySet() { } public PropertySet(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public PropertyValue getSomeSpecificProperty() { return someSpecificProperty; } public void setSomeSpecificProperty(PropertyValue someSpecificProperty) { this.someSpecificProperty = someSpecificProperty; } public Map getGeneralProperties() { return generalProperties; } public void setGeneralProperties(Map generalProperties) { this.generalProperties = generalProperties;
public class Item { private Long id; private String name; private long version; private Set parts = new HashSet(); public Item() { } public Item(String name) { this.name = name; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public long getVersion() { return version; } public void setVersion(long version) { this.version = version; } public Set getParts() { return parts; } public void setParts(Set parts) { this.parts = parts;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/any/PropertySet.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/Item.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PropertySet {
1
public class Item {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private PropertyValue someSpecificProperty;
4
	private 
5
	private Map generalPropertie
5
long version;
6
s = new HashMap();
6
	private Set parts = new HashSet();
7
	public PropertySet() {
7
	public Item() {
8
	}
8
	}
9
	public PropertySet(String name) {
9
	public Item(String name) {
10
		this.name = name;
10
		this.name = name;
11
	}
11
	}
12
	public Long getId() {
12
	public Long getId() {
13
		return id;
13
		return id;
14
	}
14
	}
15
	public void setId(Long id) {
15
	public void setId(Long id) {
16
		this.id = id;
16
		this.id = id;
17
	}
17
	}
18
	public String getName() {
18
	public String getName() {
19
		return name;
19
		return name;
20
	}
20
	}
21
	public void setName(String name) {
21
	public void setName(String name) {
22
		this.name = name;
22
		this.name = name;
23
	}
23
	}
24
	public PropertyValue getSomeSpecificProperty() {
24
	public 
25
		return someSpecificProperty;
26
	}
27
	public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {
28
		this.someSpecificProperty = someSpecificProperty
25
long getVersion() {
26
		return version;
27
	}
28
	public void setVersion(long version) {
29
;
29
		this.version = version;
30
	}
30
	}
31
	public Map getGeneralProperties() {
31
	public Set get
32
		return generalProperties;
33
	}
34
	public void setGeneralProperties(Map generalProperties) {
35
		this.generalProperties = generalPropertie
32
Parts() {
33
		return parts;
34
	}
35
	public void setParts(Set parts) {
36
s;
36
		this.parts = parts;
37
	
37
	
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