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 Site { private String name; private String description; private Set employees = new HashSet(); private Set managers = new HashSet(); Site() {} public Site(String name) { this.name=name; } public Set getManagers() { return managers; } public void setManagers(Set managers) { this.managers = managers; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Set getEmployees() { return employees; } public void setEmployees(Set employees) { this.employees = employees; } public String getName() { return name; } public void setName(String name) { this.name = name
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/ternary/Site.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PropertySet {
1
public class Site {
2
	private Long id;
2
	private String name;
3
	private String name;
3
	private String 
4
	private PropertyValue someSpecificProperty;
5
	private Map generalPropertie
4
description;
5
	private Set employees = new HashSet();
6
s = new HashMap();
6
	private Set managers = new Hash
7
	public PropertySet() {
8
	}
9
	public PropertySet
7
Set();
8
	Site() {}
10
(String name) {
9
	public Site(String name) {
11
		this.name = name;
10
		this.name=name;
12
	}
11
	}
13

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

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

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

22
description;
23
	}
26
	public void setName(String name) {
24
	public void setDescription(String description) {
27
		this.name = name;
25
		this.
28
	}
29
	public PropertyValue getSomeSpecificProperty
26
description = description;
27
	}
30
() {
28
	public Set getEmployees() {
31
		return someSpecificProperty;
29
		return 
32
	}
33
	public void setSomeSpecificProperty(PropertyValue someSpecificProperty
30
employees;
31
	}
34
) {
32
	public void setEmployees(Set employees) {
35
		this.someSpecificProperty = someSpecificProperty;
33
		this.
36
	}
37
	public Map getGeneralProperties
34
employees = employees;
35
	}
38
() {
36
	public String getName() {
39
		return generalProperties;
37
		return 
40
	}
41
	public void setGeneralProperties(Map generalProperties
38
name;
39
	}
42
) {
40
	public void setName(String name) {
43
		this.generalProperties = generalProperties
41
		this.name = name
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