public class Address { private Long id; private String address; private String zip; private String country; private Person person; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the person. */ public Person getPerson() { return person; } /** * @param person The person to set. */ public void setPerson(Person person) { this.person = person; } /** * @return Returns the address. */ public String getAddress() { return address; } /** * @param address The address to set. */ public void setAddress(String address) { this.address = address; } /** * @return Returns the country. */ public String getCountry() { return country; } /** * @param country The country to set. */ public void setCountry(String country) { this.country = country; } /** * @return Returns the zip. */ public String getZip() { return zip; } /** * @param zip The zip to set. */ public void setZip(String zip) { this.zip = zip;
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/propertyref/basic/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 Long id;
2
	private Integer id;
3
	private String address;
3
	private String name;
4
	private String zip;
4
	private String model;
5
	private String country;
5
	private 
6
	private Person pers
6
double speed;
7
on;
7
	private Dimension dimensions;
8
	/**
9
	 * @return Returns the id.
10
	 */
11
	public Long getId() {
8
	public Dimension getDimensions() {
12
		return id;
9
		return 
13
	}
14
	/**
15
	 * @param id The id to set.
16
	 */
17
	public void setId(Long id) {
18
		this.id = id;
19
	}
20
	/**
21
	 * @return Returns the person.
22
	 */
23
	public Person getPerson
10
dimensions;
11
	}
12
	public void setDimensions(Dimension dimensions) {
13
		this.dimensions = dimensions;
14
	}
24
() {
15
	public Integer getId() {
25
		return person;
16
		return id;
26
	}
17
	}
27
	/**
28
	 * @param person The person to set.
29
	 */
30
	public void setPerson(Person person) {
31
		this.person = person;
32
	}
33
	/**
34
	 * @return Returns the address.
35
	 */
18
	public void setId(Integer id) {
19
		this.id = id;
20
	}
36
	public String getAddress() {
21
	public String getModel() {
37
		return address;
22
		return 
38
	}
39
	/**
40
	 * @param address The address to set.
41
	 */
23
model;
24
	}
42
	public void setAddress(String address) {
25
	public void setModel(String model) {
43
		this.address = address;
26
		this.
44
	}
45
	/**
46
	 * @return Returns the country.
47
	 */
27
model = model;
28
	}
48
	public String getCountry() {
29
	public String getName() {
49
		return country;
30
		return 
50
	}
51
	/**
52
	 * @param country The country to set.
53
	 */
31
name;
32
	}
54
	public void setCountry(String country) {
33
	public void setName(String name) {
55
		this.country = country;
34
		this.
56
	}
57
	/**
58
	 * @return Returns the zip.
59
	 */
35
name = name;
36
	}
60
	public String getZip() {
37
	public double getSpeed() {
61
		return zip;
38
		return speed;
62
	}
39
	}
63
	/**
64
	 * @param zip The zip to set.
65
	 */
66
	public void setZip(String zip
67
) {
40
	public void setSpeed(double speed) {
68
		this.zip = zip;
41
		this.speed = speed;
69
	
42
	
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