File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLDriver.java | File path: /sql12/plugins/sessionscript/src/net/sourceforge/squirrel_sql/plugins/sessionscript/AliasScript.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 = ((ISQLDriver) rhs).getIdentifier().equals(getIdentifier());↵ | 4 | rc = ((AliasScript) 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 | 1 |
Number of non-refactorable cases | 0 |
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.1 |
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 = ((ISQLDriver)rhs).getIdentifier().equals(getIdentifier()); |
| 3 | rc = ((AliasScript)rhs).getIdentifier().equals(getIdentifier()); | ||||||||||||
4 | return rc; | 4 | return rc; |
Row | Violation |
---|---|
1 | Expression (ISQLDriver)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (AliasScript)rhs cannot be parameterized, because it has dependencies to/from statements that will be extracted |