File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/engine/query/QueryPlanCache.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 14 | Number of AST nodes: 12 | |||
1 | if ( this == o ) {↵ | 1 | if ( this == o ) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if ( o == null || getClass() != o.getClass() ) {↵ | 4 | if ( o == null || getClass() != o.getClass() ) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | final FilterQueryPlanKey that = ( FilterQueryPlanKey ) o;↵ | 7 | final HQLQueryPlanKey that = ( HQLQueryPlanKey ) o;↵ | |
8 | if ( shallow != that.shallow ) {↵ | 8 | if ( shallow != that.shallow ) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if ( !filterNames.equals( that.filterNames ) ) {↵ | 11 | if ( !filterNames.equals( that.filterNames ) ) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if ( !query.equals( that.query ) ) {↵ | 14 | if ( !query.equals( that.query ) ) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if ( !collectionRole.equals( that.collectionRole ) ) {↵ | |||
18 | return false;↵ | |||
19 | }↵ | |||
20 | return true; | 17 |
| |
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) | 2.6 |
Clones location | Clones are in the same java file |
Number of node comparisons | 79 |
Number of mapped statements | 11 |
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) | 2.0 |
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 == null || getClass() != o.getClass()) |
| 3 | if (o == null || getClass() != o.getClass()) | |||||||||||
4 | return false; | 4 | return false; | ||||||||||||
| 5 | final HQLQueryPlanKey that = (HQLQueryPlanKey)o; | |||||||||||||
5 | final FilterQueryPlanKey that = (FilterQueryPlanKey)o; | | |||||||||||||
6 | if (shallow != that.shallow) |
| 6 | if (shallow != that.shallow) | |||||||||||
7 | return false; | 7 | return false; | ||||||||||||
8 | if (!filterNames.equals(that.filterNames)) |
| 8 | if (!filterNames.equals(that.filterNames)) | |||||||||||
9 | return false; | 9 | return false; | ||||||||||||
10 | if (!query.equals(that.query)) |
| 10 | if (!query.equals(that.query)) | |||||||||||
11 | return false; | 11 | return false; | ||||||||||||
12 | if (!collectionRole.equals(that.collectionRole)) | | |||||||||||||
13 | return false; |
| | ||||||||||||
14 | return true; | 12 | return true; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type org.hibernate.engine.query.QueryPlanCache.FilterQueryPlanKey of variable that does not match with type org.hibernate.engine.query.QueryPlanCache.HQLQueryPlanKey of variable that |
3 | Type org.hibernate.engine.query.QueryPlanCache.FilterQueryPlanKey of variable that does not match with type org.hibernate.engine.query.QueryPlanCache.HQLQueryPlanKey of variable that |
4 | Type org.hibernate.engine.query.QueryPlanCache.FilterQueryPlanKey of variable that does not match with type org.hibernate.engine.query.QueryPlanCache.HQLQueryPlanKey of variable that |
5 | Unmatched return false; |