public class Bid { private Long id; private Auction item; private BigDecimal amount; private boolean successful; private Date datetime; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Auction getItem() { return item; } public void setItem(Auction item) { this.item = item; } public boolean isSuccessful() { return successful; } public void setSuccessful(boolean successful) { this.successful = successful; } public Date getDatetime() { return datetime; } public void setDatetime(Date datetime) { this.datetime = datetime
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/bidi/Bid.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 Bid {
1
public class SpaceShip {
2
	private Long id;
2
	private Integer id;
3
	private Auction item;
3
	private 
4
	private BigDecimal amount;
5
	private boolean successful;
6
	private Date datetime; 
4
String name;
5
	private String model;
6
	private double speed;
7
	private Dimension dimensions;
8

7
	public Long getId() {
9
	public Dimension getDimensions() {
8
		return id;
10
		return 
9
	}
10
	public void setId(Long id
11
dimensions;
12
	}
11
) {
13
	public void setDimensions(Dimension dimensions) {
12
		this.id = id;
14
		this.
13
	}
14
	public BigDecimal getAmount
15
dimensions = dimensions;
16
	}
15
() {
17
	public Integer getId() {
16
		return amount;
18
		return 
17
	}
19
id;
20
	}
21

18
	public void setAmount(BigDecimal amount) {
22
	public void setId(Integer id) {
19
		this.amount = amount;
23
		this.
20
	}
24
id = id;
25
	}
26

21
	public Auction getItem() {
27
	public String getModel() {
22
		return item;
28
		return 
23
	}
29
model;
30
	}
31

24
	public void setItem(Auction item) {
32
	public void setModel(String model) {
25
		this.item = item;
33
		this.
26
	}
27
	public boolean isSuccessful
34
model = model;
35
	}
28
() {
36
	public String getName() {
29
		return successful;
37
		return 
30
	}
38
name;
39
	}
40

31
	public void setSuccessful(boolean successful) {
41
	public void setName(String name) {
32
		this.successful = successful;
42
		this.
33
	}
43
name = name;
44
	}
45

34
	public Date getDatetime() {
46
	public double getSpeed() {
35
		return datetime;
47
		return 
36
	}
48
speed;
49
	}
50

37
	public void setDatetime(Date datetime) {
51
	public void setSpeed(double speed) {
38
		this.datetime = datetime
52
		this.speed = speed
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