File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/action/DelayedPostInsertIdentifier.java | File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/jdbc/util/FormatStyle.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
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 DelayedPostInsertIdentifier that = ( DelayedPostInsertIdentifier ) o; ↵ | 7 | FormatStyle that = ( FormatStyle ) o;↵ | |
8 | return sequence == that.sequence; | 8 | return name.equals( that.name ); | |
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) | 0.8 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 2 |
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 | FormatStyle that = (FormatStyle)o; | ||||||||||||||
5 | final DelayedPostInsertIdentifier that = (DelayedPostInsertIdentifier)o; | | ||||||||||||||
6 | return sequence == that.sequence; |
| 6 | return name.equals(that.name); |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Expression sequence == that.sequence cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression name.equals(that.name) cannot be parameterized, because it has dependencies to/from statements that will be extracted |