public class SessionAttribute { private Long id; private String name; private String stringData; private Serializable objectData; SessionAttribute() {} public SessionAttribute(String name, Serializable obj) { this.name = name; this.objectData = obj; } public SessionAttribute(String name, String str) { this.name = name; this.stringData = str; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Serializable getObjectData() { return objectData; } public void setObjectData(Serializable objectData) { this.objectData = objectData; } public String getStringData() { return stringData; } public void setStringData(String stringData) { this.stringData = stringData
public class Point implements Serializable { private BigDecimal x; private BigDecimal y; private String description; private Object row; Point() {} public Point(BigDecimal x, BigDecimal y) { this.x = x; this.y = y; } public BigDecimal getX() { return x; } void setX(BigDecimal x) { this.x = x; } public BigDecimal getY() { return y; } void setY(BigDecimal y) { this.y = y; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Object getRow() { return row; } public void setRow(Object row) { this.row = row
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/map/SessionAttribute.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/rowid/Point.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class SessionAttribute {
1
public class Point implements Serializable {
2
	private Long id;
2
	private 
3
	private String name;
4
	private String stringData;
5
	private Serializable objectData;
6
	SessionAttribute
3
BigDecimal x;
4
	private BigDecimal y;
5
	private String description;
6
	private Object row;
7
() {}
7
	Point() {}
8
	
8
	
9
public SessionAttribute(String name, Serializable obj) {
9
	public 
10
		this.name = name;
11
		this.objectData = obj
10
Point(BigDecimal x, BigDecimal y) {
11
		this.x = x;
12
;
12
		this.y = y;
13
	}
13
	}
14
	public SessionAttribute(String name, String str) {
14
	public 
15
		this.name = name;
16
		this.stringData = str
15
BigDecimal getX() {
16
		return x;
17
	}
18
	void setX(BigDecimal x) {
17
;
19
		this.x = x;
18
	}
20
	}
19
	public String getName() {
21
	public BigDecimal getY() {
20
		return name;
22
		return y;
21
	}
23
	}
22
	public void setName(String name) {
23
		this.name = name
24
	void setY(BigDecimal y) {
24
;
25
		this.y = y;
25
	}
26
	}
26
	public Serializable getObjectData() {
27
	public String getDescription() {
27
		return objectData;
28
		return description;
28
	}
29
	}
29
	public void setObjectData(Serializable objectData) {
30
	public void setDescription(Stri
30
		this.objectData = objectData
31
ng description) {
31
;
32
		this.description = description;
32
	}
33
	}
33
	public String getStringData() {
34
	public Object getRow() {
34
		return stringData;
35
		return row;
35
	}
36
	}
36
	public void setStringData(String stringData) {
37
	public void setRow(Object row) {
37
		this.stringData = stringData
38
		this.row = row
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