public class Middle implements Serializable { private MiddleKey id; private String bla; public MiddleKey getId() { return id; } public void setId(MiddleKey id) { this.id = id; } public String getBla() { return bla; } public void setBla(String bla) { this.bla = bla; } public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Middle)) return false; final Middle cidMaster = (Middle) o; if (id != null ? !id.equals(cidMaster.id) : cidMaster.id != null) return false; return true; } public int hashCode() { return (id != null ? id.hashCode() : 0)
public class Outer implements Serializable { private OuterKey id; private String bubu; public OuterKey getId() { return id; } public void setId(OuterKey id) { this.id = id; } public String getBubu() { return bubu; } public void setBubu(String bubu) { this.bubu = bubu; } public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Outer)) return false; final Outer cidDetail = (Outer) o; if (id != null ? !id.equals(cidDetail.id) : cidDetail.id != null) return false; return true; } public int hashCode() { return (id != null ? id.hashCode() : 0)
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Middle.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Outer.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public class Middle implements Serializable {
1
public class Outer implements Serializable {
2
	private MiddleKey id;
2
	private OuterKey id;
3
	private String bla;
3
	private String bubu;
4
	public MiddleKey getId() {
4
	public OuterKey getId() {
5
		return id;
5
		return id;
6
	}
6
	}
7
	public void setId(MiddleKey id) {
7
	public void setId(OuterKey id) {
8
		this.id = id;
8
		this.id = id;
9
	}
9
	}
10
	public String getBla() {
10
	public String getBubu() {
11
		return bla;
11
		return bubu;
12
	}
12
	}
13
	public void setBla(String bla) {
13
	public void setBubu(String bubu) {
14
		this.bla = bla;
14
		this.bubu = bubu;
15
	}
15
	}
16
	public boolean equals(Object o) {
16
	public boolean equals(Object o) {
17
		if (this == o) return true;
17
		if (this == o) return true;
18
		if (!(o instanceof Middle)) return false;
18
		if (!(o instanceof Outer)) return false;
19
		final Middle cidMaster = (Middle) o;
19
		final Outer cidDetail = (Outer) o;
20
		if (id != null ? !id.equals(cidMaster.id) : cidMaster.id != null) return false;
20
		if (id != null ? !id.equals(cidDetail.id) : cidDetail.id != null) return false;
21
		return true;
21
		return true;
22
	}
22
	}
23
	public int hashCode() {
23
	public int hashCode() {
24
		return (id != null ? id.hashCode() : 0)
24
		return (id != null ? id.hashCode() : 0)
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