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 Employee extends Person { private String title; private String department; private Employee manager; private Set minions = new HashSet(); public Employee() { } public Employee(String name) { super( name ); } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public Employee getManager() { return manager; } public void setManager(Employee manager) { this.manager = manager; } public Set getMinions() { return minions; } public void setMinions(Set minions) { this.minions = minions
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/subclassfilter/Employee.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class PropertySet {
1
public class 
2
	
2
Employee extends Person {
3
private Long id;
3
    private String title;
4
	private String name;
4
	private String 
5
	private PropertyValue someSpecificProperty;
6
	private Map generalPropertie
5
department;
6
	private Employee manager;
7
s = new HashMap();
7
	private Set minions = new Hash
8
	public PropertySet
8
Set();
9
() {
9
	public Employee() {
10
	}
10
	}
11

12
	public PropertySet(String name) {
11
	public Employee(String name) {
13
		this.name = name;
12
		super( name
14
	}
15

13
 );
14
	}
16
	public Long getId() {
15
	public String getTitle() {
17
		return id;
16
		return 
18
	}
19

17
title;
18
	}
20
	public void setId(Long id) {
19
	public void setTitle(String title) {
21
		this.id = id;
20
		this.
22
	}
23

21
title = title;
22
	}
24
	public String getName() {
23
	public String getDepartment() {
25
		return name;
24
		return 
26
	}
27

25
department;
26
	}
28
	public void setName(String name) {
27
	public void setDepartment(String department) {
29
		this.name = name;
28
		this.
30
	}
31
	public PropertyValue getSomeSpecificProperty
29
department = department;
30
	}
32
() {
31
	public Employee getManager() {
33
		return someSpecificProperty;
32
		return 
34
	}
35
	public void setSomeSpecificProperty(PropertyValue someSpecificProperty
33
manager;
34
	}
36
) {
35
	public void setManager(Employee manager) {
37
		this.someSpecificProperty = someSpecificProperty;
36
		this.
38
	}
39

37
manager = manager;
38
	}
40
	public Map getGeneralProperties() {
39
	public Set getMinions() {
41
		return generalProperties;
40
		return minions;
42
	}
41
	}
43

44
	public void setGeneralProperties(Map generalProperties) {
42
	public void setMinions(Set minions) {
45
		this.generalProperties = generalProperties
43
		this.minions = minions
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