File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/Folder.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/db/AliasGroup.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 | {↵ | 3 | {↵ | |
4 | rc = ((Folder)rhs).getIdentifier().equals(getIdentifier());↵ | 4 | rc = ((AliasGroup)rhs).getIdentifier().equals(getIdentifier());↵ | |
5 | }↵ | 5 | }↵ | |
6 | return rc; | 6 |
| |
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.5 |
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 = ((Folder)rhs).getIdentifier().equals(getIdentifier()); |
| 3 | rc = ((AliasGroup)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 | Expression (Folder)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression (AliasGroup)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type net.sourceforge.squirrel_sql.plugins.favs.Folder does not match with type net.sourceforge.squirrel_sql.client.db.AliasGroup |