File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/id/UidIdentifier.java | File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/Query.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | boolean rc = false;↵ | 1 | boolean rc = false;↵ | |
2 | if (rhs != null && rhs.getClass().equals(getClass()))↵ | 2 | if (rhs != null && rhs.getClass().equals(getClass()))↵ | |
3 | {↵ | |||
4 | rc = ((UidIdentifi↵ | 3 | {↵ | |
5 | er)rhs).toString().equals(toString());↵ | 4 | rc = ((Query)rhs).↵ | |
6 | }↵ | |||
7 | ↵ | 5 | getIdentifier().equals(getIdentifier());↵ | |
6 | }↵ | |||
8 | return rc; | 7 | return rc; | |
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.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | boolean rc = false; | 1 | boolean rc = false; | ||||||||||||||||||||||||||||||
2 | if (rhs != null && rhs.getClass().equals(getClass())) |
| 2 | if (rhs != null && rhs.getClass().equals(getClass())) | |||||||||||||||||||||||||||||
3 | rc = ((UidIdentifier)rhs).toString().equals(toString()); |
| 3 | rc = ((Query)rhs).getIdentifier().equals(getIdentifier()); | |||||||||||||||||||||||||||||
4 | return rc; | 4 | return rc; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type java.lang.String of variable toString() does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable getIdentifier() |
3 | Expression ((UidIdentifier)rhs).toString() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ((Query)rhs).getIdentifier() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.String of variable ((UidIdentifier)rhs).toString() does not match with type net.sourceforge.squirrel_sql.fw.id.IIdentifier of variable ((Query)rhs).getIdentifier() |
6 | Expression (UidIdentifier)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression (Query)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type net.sourceforge.squirrel_sql.fw.id.UidIdentifier does not match with type net.sourceforge.squirrel_sql.plugins.favs.Query |