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 EntityWithOneToOnes { private Long id; private String name; private OneToOneNoProxy oneToOneNoProxy; private OneToOneProxy oneToOneProxy; public EntityWithOneToOnes() { } public EntityWithOneToOnes(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 OneToOneNoProxy getOneToOneNoProxy() { return oneToOneNoProxy; } public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) { this.oneToOneNoProxy = oneToOneNoProxy; } public OneToOneProxy getOneToOneProxy() { return oneToOneProxy; } public void setOneToOneProxy(OneToOneProxy oneToOneProxy) { this.oneToOneProxy = oneToOneProxy;
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/instrument/domain/EntityWithOneToOnes.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PropertySet {
1
public class EntityWithOneToOnes {
2
	private Long id;
2
	private Long id;
3
	private String name;
3
	private String name;
4
	private PropertyValue someSpecificProperty;
4
	private OneToOneNoProxy oneToOneNoProxy;
5
	private Map generalProperties = new HashMap();
5
	private 
6
	public PropertySet
6
OneToOneProxy oneToOneProxy;
7
() {
7
	public EntityWithOneToOnes() {
8
	}
8
	}
9

10
	public PropertySet(String name) {
9
	public EntityWithOneToOnes(String name) {
11
		this.name = name;
10
		this.name = name;
12
	}
11
	}
13

14
	public Long getId() {
12
	public Long getId() {
15
		return id;
13
		return id;
16
	}
14
	}
17

18
	public void setId(Long id) {
15
	public void setId(Long id) {
19
		this.id = id;
16
		this.id = id;
20
	}
17
	}
21

22
	public String getName() {
18
	public String getName() {
23
		return name;
19
		return name;
24
	}
20
	}
25

26
	public void setName(String name) {
21
	public void setName(String name) {
27
		this.name = name;
22
		this.name = name;
28
	}
23
	}
29

30
	public PropertyValue getSomeSpecificProperty() {
24
	public OneToOneNoProxy getOneToOneNoProxy() {
31
		return someSpecificProperty;
25
		return oneToOneNoProxy;
32
	}
26
	}
33

34
	public void setSomeSpecificProperty(PropertyValue someSpecificProperty) {
27
	public void setOneToOneNoProxy(OneToOneNoProxy oneToOneNoProxy) {
35
		this.someSpecificProperty = someSpecificProperty;
28
		this.oneToOneNoProxy = oneToOneNoProxy;
36
	}
29
	}
37

38
	public Map getGeneralProperties() {
30
	public OneToOneProxy getOneToOneProxy() {
39
		return generalProperties;
31
		return 
40
	}
41
	public void setGeneralProperties(Map generalProperties
32
oneToOneProxy;
33
	}
42
) {
34
	public void setOneToOneProxy(OneToOneProxy oneToOneProxy) {
43
		this.generalProperties = generalProperties;
35
		this.oneToOneProxy = oneToOneProxy;
44
	
36
	
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