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 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;
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 boolean equals(Object o) {↵ | | 1 | public boolean equals(Object o) {↵
|
2 | if (this == o) return true;↵ | | 2 | if (this == o) return true;↵
|
3 | if (!(o instanceof Middle)) return false;↵ | | 3 | if (!(o instanceof Outer)) return false;↵
|
|
4 | final Middle cidMaster = (Middle) o;↵ | | 4 | final Outer cidDetail = (Outer) o;↵
|
|
5 | if (id != null ? !id.equals(cidMaster.id) : cidMaster.id != null) return false;↵ | | 5 | if (id != null ? !id.equals(cidDetail.id) : cidDetail.id != null) return false;↵
|
|
6 | return true;↵ | | 6 | return true;↵
|
7 | | | 7 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |