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 Point implements Serializable { private BigDecimal x; private BigDecimal y; private String description; private Object row; Point() {} public Point(BigDecimal x, BigDecimal y) { this.x = x; this.y = y; } public BigDecimal getX() { return x; } void setX(BigDecimal x) { this.x = x; } public BigDecimal getY() { return y; } void setY(BigDecimal y) { this.y = y; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Object getRow() { return row; } public void setRow(Object row) { this.row = row;
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/rowid/Point.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PropertySet {
1
public class Point implements Serializable {
2
	private Long id;
2
	private 
3
	private String name;
4
	private PropertyValue someSpecificProperty;
5
	private Map generalProperties = new HashMap();
6
	public PropertySet() {
7
	}
8
	public PropertySet(String name
3
BigDecimal x;
4
	private BigDecimal y;
5
	private String description;
6
	private Object row;
7
	Point() {}
8
	
9
) {
9
	public Point(BigDecimal x, BigDecimal y) {
10
		this.name = name;
10
		this.
11
	}
12
	public Long
11
x = x;
12
		this.y = y;
13
	}
13
 getId() {
14
	public BigDecimal getX() {
14
		return id;
15
		return 
15
	}
16
	public void setId(Long id
16
x;
17
	}
17
) {
18
	void setX(BigDecimal x) {
18
		this.id = id;
19
		this.x = 
19
	}
20
	public String getName
20
x;
21
	}
21
() {
22
	public BigDecimal getY() {
22
		return name;
23
		return 
23
	}
24
	public void setName(String name
24
y;
25
	}
25
) {
26
	void setY(BigDecimal y) {
26
		this.name = name;
27
		this.
27
	}
28
	public PropertyValue getSomeSpecificProperty
28
y = y;
29
	}
29
() {
30
	public String getDescription() {
30
		return someSpecificProperty;
31
		return 
31
	}
32
	public void setSomeSpecificProperty(PropertyValue someSpecificProperty
32
description;
33
	}
33
) {
34
	public void setDescription(String description) {
34
		this.someSpecificProperty = someSpecificProperty;
35
		this.
35
	}
36
	public Map getGeneralProperties
36
description = description;
37
	}
37
() {
38
	public Object getRow() {
38
		return generalProperties;
39
		return 
39
	}
40
	public void setGeneralProperties(Map generalProperties
40
row;
41
	}
41
) {
42
	public void setRow(Object row) {
42
		this.generalProperties = generalProperties;
43
		this.row = row;
43
	
44
	
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