public class Document extends Item { private Blob content; private Calendar modified; private Calendar created; /** * @return Returns the created. */ public Calendar getCreated() { return created; } /** * @param created The created to set. */ public void setCreated(Calendar created) { this.created = created; } /** * @return Returns the modified. */ public Calendar getModified() { return modified; } /** * @param modified The modified to set. */ public void setModified(Calendar modified) { this.modified = modified; } /** * @return Returns the content. */ public Blob getContent() { return content; } /** * @param content The content to set. */ public void setContent(Blob content) { this.content = content
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/mixed/Document.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 Document extends Item {
1
public class Alien extends Being {
2
	private Blob content;
2
	private 
3
	private Calendar modified;
4
	private Calendar created;
3
String species;
4
	private Hive hive;
5
	private List hivemates = new ArrayList();
5
	/**
6
	/**
6
	 * @return Returns the created.
7
	 * @return Returns the species.
7
	 */
8
	 */
8
	public Calendar getCreated() {
9
	public String getSpecies() {
9
		return created;
10
		return 
11
species;
10
	}
12
	}
11
	/**
13
	/**
12
	 * @param created The created to set.
14
	 * @param species The species to set.
13
	 */
15
	 */
14
	public void setCreated(Calendar created) {
16
	public void setSpecies(String species) {
15
		this.created = created;
17
		this.
16
	}
17
	/**
18
	 * @return Returns the modified.
19
	 */
18
species = species;
19
	}
20
	public Calendar getModified() {
20
	public Hive getHive() {
21
		return modified;
21
		return 
22
	}
23
	/**
24
	 * @param modified The modified to set.
25
	 */
26
	public void setModified(Calendar modified
22
hive;
23
	}
27
) {
24
	public void setHive(Hive hive) {
28
		this.modified = modified;
25
		this.hive = hive;
29
	}
26
	}
30
	/**
31
	 * @return Returns the content.
32
	 */
33
	public Blob getContent() {
27
	public List getHivemates() {
34
		return content;
28
		return 
35
	}
36
	/**
37
	 * @param content The content to set.
38
	 */
39
	public void setContent(Blob content
29
hivemates;
30
	}
40
) {
31
	public void setHivemates(List hivemates) {
41
		this.content = content
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