public class Address { private String street; private String city; private String postalCode; private String country; private StateProvince stateProvince; public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getPostalCode() { return postalCode; } public void setPostalCode(String postalCode) { this.postalCode = postalCode; } public String getCountry() { return country; } public void setCountry(String country) { this.country = country; } public StateProvince getStateProvince() { return stateProvince; } public void setStateProvince(StateProvince stateProvince) { this.stateProvince = stateProvince
public class SpaceShip { private Integer id; private String name; private String model; private double speed; private Dimension dimensions; public Dimension getDimensions() { return dimensions; } public void setDimensions(Dimension dimensions) { this.dimensions = dimensions; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getModel() { return model; } public void setModel(String model) { this.model = model; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getSpeed() { return speed; } public void setSpeed(double speed) { this.speed = speed
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/Address.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/sql/hand/SpaceShip.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Address {
1
public class SpaceShip {
2
	private String street;
2
	private Integer id;
3
	private String city;
3
	private String name;
4
	private String postalCode;
4
	private String 
5
	private String country;
6
	private StateProvince stateProvince;
7
	public String getStreet
5
model;
6
	private double speed;
7
	private Dimension dimensions;
8
() {
8
	public Dimension getDimensions() {
9
		return street;
9
		return 
10
	}
11
	public void setStreet(String street
10
dimensions;
11
	}
12
) {
12
	public void setDimensions(Dimension dimensions) {
13
		this.street = street;
13
		this.
14
	}
15
	public String getCity
14
dimensions = dimensions;
15
	}
16
() {
16
	public Integer getId() {
17
		return city;
17
		return 
18
	}
18
id;
19
	}
20

19
	public void setCity(String city) {
21
	public void setId(Integer id) {
20
		this.city = city;
22
		this.
21
	}
23
id = id;
24
	}
25

22
	public String getPostalCode() {
26
	public String getModel() {
23
		return postalCode;
27
		return 
24
	}
28
model;
29
	}
30

25
	public void setPostalCode(String postalCode) {
31
	public void setModel(String model) {
26
		this.postalCode = postalCode;
32
		this.model = 
27
	}
33
model;
34
	}
35

28
	public String getCountry() {
36
	public String getName() {
29
		return country;
37
		return 
30
	}
38
name;
39
	}
40

31
	public void setCountry(String country) {
41
	public void setName(String name) {
32
		this.country = country;
42
		this.
33
	}
34
	public StateProvince getStateProvince
43
name = name;
44
	}
35
() {
45
	public double getSpeed() {
36
		return stateProvince;
46
		return s
37
	}
47
peed;
48
	}
49

38
	public void setStateProvince(StateProvince stateProvince) {
50
	public void setSpeed(double speed) {
39
		this.stateProvince = stateProvince
51
		this.speed = speed
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