public class AddressImpl implements Address { private Long id; private String addressType; private Server server; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getAddressType() { return addressType; } public void setAddressType(String addressType) { this.addressType = addressType; } public Server getServer() { return server; } public void setServer(Server server) { this.server = server
public class Alien extends Being { private String species; private Hive hive; private List hivemates = new ArrayList(); /** * @return Returns the species. */ public String getSpecies() { return species; } /** * @param species The species to set. */ public void setSpecies(String species) { this.species = species; } public Hive getHive() { return hive; } public void setHive(Hive hive) { this.hive = hive; } public List getHivemates() { return hivemates; } public void setHivemates(List hivemates) { this.hivemates = hivemates
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/abstractembeddedcomponents/propertyref/AddressImpl.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass/Alien.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class AddressImpl implements Address {
1
public class Alien extends Being {
2
	private Long id;
2
	private 
3
	private String addressTyp
3
String species;
4
e;
4
	private Hive hive;
5
	private Server server;
5
	private 
6

6
List hivemates = new ArrayList();
7
	/**
8
	 * @return Returns the species.
9
	 */
7
	public Long getId() {
10
	public String getSpecies() {
8
		return id;
11
		return 
9
	}
10
	public void setId(Long id
12
species;
13
	}
14
	/**
15
	 * @param species The species to set.
16
	 */
11
) {
17
	public void setSpecies(String species) {
12
		this.id = id;
18
		this.
13
	}
14
	public String getAddressTyp
19
species = species;
20
	}
15
e() {
21
	public Hive getHive() {
16
		return addressType;
22
		return hive;
17
	}
23
	}
18

19
	public void setAddressType(String addressType) {
24
	public void setHive(Hive hive) {
20
		this.addressType = addressType;
25
		this.hive = hive;
21
	}
26
	}
22

23
	public Server getServer() {
27
	public List getHivemates() {
24
		return server;
28
		return 
25
	}
26

29
hivemates;
30
	}
27
	public void setServer(Server server) {
31
	public void setHivemates(List hivemates) {
28
		this.server = server
32
		this.hivemates = hivemates
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