public class ProductLine { private String id; private String description; private Set models = new HashSet(); public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getId() { return id; } public void setId(String id) { this.id = id; } public Set getModels() { return models; } public void setModels(Set models) { this.models = models;
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/batchfetch/ProductLine.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 ProductLine {
1
public class Alien extends Being {
2
	private String id;
2
	private String species;
3
	private String description;
3
	private 
4
	private Set models = new HashSet();
5
	
4
Hive hive;
5
	private List hivemates = new ArrayList();
6
	/**
7
	 * @return Returns the species.
8
	 */
6
	public String getDescription() {
9
	public String getSpecies() {
7
		return description;
10
		return 
8
	}
11
species;
12
	}
13
	/**
14
	 * @param species The species to set.
15
	 */
9
	public void setDescription(String description) {
16
	public void set
10
		this.description = description
17
Species(String species) {
11
;
18
		this.species = species;
12
	}
19
	}
13
	public String getId() {
20
	public Hive getHive() {
14
		return id;
21
		return hive;
15
	}
22
	}
16
	public void setId(String id) {
23
	public void setHive(Hive hive) {
17
		this.id = id;
24
		this.hive = hive;
18
	}
25
	}
19
	public Set getModels() {
26
	public List getHivemates() {
20
		return models;
27
		return hivemates;
21
	}
28
	}
22
	public void setModels(Set models) {
29
	public void set
23
		this.models = model
30
Hivemates(List hivemates) {
24
s;
31
		this.hivemates = hivemates;
25
	
32
	
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