File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/ProcedureInfo.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/TableInfo.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (super.equals(obj) && obj instanceof ProcedureInfo)↵ | 1 | if (super.equals(obj) && obj instanceof TableInfo)↵ | |
2 | {↵ | 2 | {↵ | |
3 | ProcedureInfo info = (ProcedureInfo) obj;↵ | 3 | TableInfo info = (TableInfo) obj;↵ | |
4 | if (↵ | 4 | if ((info._tableType == null && _tableType == null)↵ | |
5 | || ((info._tableType != null && _tableType != null)↵ | |||
6 | && info._tableType.equals(_tableType)))↵ | |||
7 | {↵ | |||
8 | return (↵ | |||
5 | (info._remarks == null && _remarks == null)↵ | 9 | (info._remarks == null && _remarks == null)↵ | |
6 | || ((info._remarks != null && _remarks != null)↵ | 10 | || ((info._remarks != null && _remarks != null)↵ | |
7 | && info._remarks.equals(_remarks)))↵ | 11 | && info._remarks.equals(_remarks)))↵ | |
8 | {↵ | |||
9 | return info._procType == _procType;↵ | 12 | ;↵ | |
10 | }↵ | 13 | }↵ | |
11 | }↵ | 14 | }↵ | |
12 | return false; | 15 |
| |
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) | 1.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 5 |
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) | 3.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (super.equals(obj) && obj instanceof ProcedureInfo) |
| 1 | if (super.equals(obj) && obj instanceof TableInfo) | ||||||||||||||||||||||||||||||||||||||||
2 | ProcedureInfo info = (ProcedureInfo)obj; |
| 2 | TableInfo info = (TableInfo)obj; | ||||||||||||||||||||||||||||||||||||||||
3 | if ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))) |
| 3 | if ((info._tableType == null && _tableType == null) || ((info._tableType != null && _tableType != null) && info._tableType.equals(_tableType))) | ||||||||||||||||||||||||||||||||||||||||
4 | return info._procType == _procType; |
| 4 | return ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))); | ||||||||||||||||||||||||||||||||||||||||
5 | return false; | 5 | return false; |
Row | Violation |
---|---|
1 | Super method call if(super.equals(obj) && obj instanceof ProcedureInfo) cannot be extracted from method |
2 | Super method call if(super.equals(obj) && obj instanceof TableInfo) cannot be extracted from method |
3 | Expression (ProcedureInfo)obj cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression (TableInfo)obj cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression info._tableType cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression info._tableType cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression info._tableType cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression info._procType == _procType cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))) cannot be parameterized, because it has dependencies to/from statements that will be extracted |