File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/MiddleKey.java | File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/InnerKey.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 12 | Number of AST nodes: 10 | |||
1 | if (this == o) return true;↵ | 1 | if (this == o) return true;↵ | |
2 | if (!(o instanceof MiddleKey)) return false;↵ | 2 | if (!(o instanceof InnerKey)) return false;↵ | |
3 | final MiddleKey cidMasterID = (MiddleKey) o;↵ | 3 | final InnerKey cidSuperID = (InnerKey) o;↵ | |
4 | if (one != null ? !one.equals(cidMasterID.one) : cidMasterID.one != null) return false;↵ | 4 | if (akey != null ? !akey.equals(cidSuperID.akey) : cid↵ | |
5 | if (sup != null ? !sup.equals(cidMasterID.sup) : cidMasterID.sup != null) return false;↵ | 5 | SuperID.akey != null) return false;↵ | |
6 | if (two != null ? !two.equals(cidMasterID.two) : cidMasterID.two != null) return false;↵ | 6 | if (bkey != null ? !bkey.equals(cidSuperID.bkey) : cidSuperID.bkey != null) return false;↵ | |
7 | return true; | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 1.9 |
Clones location | Clones are in different classes |
Number of node comparisons | 54 |
Number of mapped statements | 9 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 1.7 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (this == o) | 1 | if (this == o) | ||||||||||||||||||||||||||||||||||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||||||||||||||||||||||||||||||||
3 | if (!(o instanceof MiddleKey)) |
| 3 | if (!(o instanceof InnerKey)) | |||||||||||||||||||||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | final InnerKey cidSuperID = (InnerKey)o; | |||||||||||||||||||||||||||||||||||||||||||||||||||
5 | final MiddleKey cidMasterID = (MiddleKey)o; | | |||||||||||||||||||||||||||||||||||||||||||||||||||
6 | if (one != null ? !one.equals(cidMasterID.one) : cidMasterID.one != null) |
| 6 | if (akey != null ? !akey.equals(cidSuperID.akey) : cidSuperID.akey != null) | |||||||||||||||||||||||||||||||||||||||||||||||||
7 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||
8 | if (sup != null ? !sup.equals(cidMasterID.sup) : cidMasterID.sup != null) |
| 8 | if (bkey != null ? !bkey.equals(cidSuperID.bkey) : cidSuperID.bkey != null) | |||||||||||||||||||||||||||||||||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||||||||||||||||||||
10 | if (two != null ? !two.equals(cidMasterID.two) : cidMasterID.two != null) | | |||||||||||||||||||||||||||||||||||||||||||||||||||
11 | return false; |
| | ||||||||||||||||||||||||||||||||||||||||||||||||||
12 | return true; | 10 | return true; |
Row | Violation |
---|---|
1 | Type boolean of variable o instanceof MiddleKey does not match with type boolean of variable o instanceof InnerKey |
2 | Type org.hibernate.test.legacy.MiddleKey of variable cidMasterID does not match with type org.hibernate.test.legacy.InnerKey of variable cidSuperID |
3 | Type org.hibernate.test.legacy.MiddleKey of variable cidMasterID does not match with type org.hibernate.test.legacy.InnerKey of variable cidSuperID |
4 | Type org.hibernate.test.legacy.Inner of variable sup does not match with type java.lang.String of variable bkey |
5 | Type org.hibernate.test.legacy.MiddleKey of variable cidMasterID does not match with type org.hibernate.test.legacy.InnerKey of variable cidSuperID |
6 | Type org.hibernate.test.legacy.Inner of variable cidMasterID.sup does not match with type java.lang.String of variable cidSuperID.bkey |
7 | Type org.hibernate.test.legacy.Inner of variable sup does not match with type java.lang.String of variable bkey |
8 | Type org.hibernate.test.legacy.MiddleKey of variable cidMasterID does not match with type org.hibernate.test.legacy.InnerKey of variable cidSuperID |
9 | Type org.hibernate.test.legacy.Inner of variable cidMasterID.sup does not match with type java.lang.String of variable cidSuperID.bkey |
10 | Unmatched return false; |