public class B extends A { private int count; private Map map; private String bName = "B Name"; public int getCount() { return count; } public void setCount(int count) { this.count = count; } public Map getMap() { return map; } public void setMap(Map map) { this.map = map; } public String getBName() { return bName; } public void setBName(String name) { bName = name
public class Thing { private long id; private String description; private Being owner; /** * @return Returns the description. */ public String getDescription() { return description; } /** * @param description The description to set. */ public void setDescription(String description) { this.description = description; } /** * @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 owner. */ public Being getOwner() { return owner; } /** * @param owner The owner to set. */ public void setOwner(Being owner) { this.owner = owner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/B.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unionsubclass/Thing.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class B extends A {
1
public class Thing {
2
	private int count;
2
	private long id;
3
	private Map map;
3
	private String description;
4
	private String bName = "B Name";
4
	private Being 
5
	
5
owner;
6
	/**
7
	 * @return Returns the description.
8
	 */
6
	public int getCount() {
9
	public String getDescription() {
7
		return count;
10
		return 
8
	}
9
	
11
description;
12
	}
13
	/**
14
	 * @param description The description to set.
15
	 */
10
	public void setCount(int count) {
16
	public void set
11
		this.count = count;
12
	}
13
	
17
Description(String description) {
18
		this.description = description;
19
	}
20
	/**
21
	 * @return Returns the id.
22
	 */
14
	public Map getMap() {
23
	public long getId() {
15
		return map;
24
		return id;
16
	}
25
	}
26
	/**
27
	 * @param id The id to set.
28
	 */
17
	public void setMap(Map map) {
29
	public void set
18
		this.map = map;
19
	}
30
Id(long id) {
31
		this.id = id;
32
	}
33
	/**
34
	 * @return Returns the owner.
35
	 */
20
	public String getBName() {
36
	public Being getOwner() {
21
		return bName;
37
		return 
22
	}
38
owner;
39
	}
40
	/**
41
	 * @param owner The owner to set.
42
	 */
23
	public void setBName(String name) {
43
	public void set
24
		bName = name
44
Owner(Being owner) {
45
		this.owner = owner
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