File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/TableInfo.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/UDTInfo.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if ((info._tableType == null && _tableType == null)↵ | 1 | if ((info._javaClassName == null && _javaClassName == null)↵ | |
2 | || ((info._tableType != null && _tableType != null)↵ | 2 | || ((info._javaClassName != null && _javaClassName != null)↵ | |
3 | && info._tableType.equals(_tableType)))↵ | 3 | && info._javaClassName.equals(_javaClassName)))↵ | |
4 | {↵ | 4 | {↵ | |
5 | return (↵ | 5 | return (↵ | |
6 | (info._remarks == null && _remarks == null)↵ | 6 | (info._remarks == null && _remarks == null)↵ | |
7 | || ((info._remarks != null && _remarks != null)↵ | 7 | || ((info._remarks != null && _remarks != null)↵ | |
8 | && info._remarks.equals(_remarks)));↵ | 8 | && info._remarks.equals(_remarks)));↵ | |
9 | } | 9 | } | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
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) | 135.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if ((info._tableType == null && _tableType == null) || ((info._tableType != null && _tableType != null) && info._tableType.equals(_tableType))) |
| 4 | if ((info._javaClassName == null && _javaClassName == null) || ((info._javaClassName != null && _javaClassName != null) && info._javaClassName.equals(_javaClassName))) | ||||||||||||||||||||||||||||||||||
4 | return ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))); |
| 5 | return ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))); |
Row | Violation |
---|---|
1 | Expression info._remarks cannot be unified with expression info._remarks , because common superclass net.sourceforge.squirrel_sql.fw.sql.DatabaseObjectInfo does not declare member(s) private final java.lang.String _remarks |
2 | Expression info._remarks cannot be unified with expression info._remarks , because common superclass net.sourceforge.squirrel_sql.fw.sql.DatabaseObjectInfo does not declare member(s) private final java.lang.String _remarks |
3 | Expression info._remarks cannot be unified with expression info._remarks , because common superclass net.sourceforge.squirrel_sql.fw.sql.DatabaseObjectInfo does not declare member(s) private final java.lang.String _remarks |
4 | Not all possible execution flows end in a return statement |