File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/DatabaseObjectInfo.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: 3 | Number of AST nodes: 3 | |||
1 | if ((info._qualifiedName == null && _qualifiedName == null)↵ | 1 | if ((info._dataType == null && _↵ | |
2 | || ((info._qualifiedName != null && _qualifiedName != null)↵ | |||
3 | && info._qualifiedName.equals(_qualifiedName)))↵ | |||
4 | {↵ | |||
5 | if ((info._schema == null && _schema == null)↵ | |||
6 | || ((info._schema != null && _schema != null)↵ | |||
7 | && info._schema.equals(_schema)))↵ | |||
8 | {↵ | |||
9 | return (↵ | |||
10 | (info._simpleName == null && _simpleName == null)↵ | |||
11 | || ((info._simpleName != null↵ | |||
12 | && _simpleName != null)↵ | |||
13 | && info._simpleName.equals(_simpleName)));↵ | |||
14 | }↵ | |||
15 | ↵ | 2 | dataType == null)↵ | |
3 | || ((info._dataType != null && _dataType != null)↵ | |||
4 | && info._dataType.equals(_dataType)))↵ | |||
5 | {↵ | |||
6 | if ((info._javaClassName == null && _javaClassName == null)↵ | |||
7 | || ((info._javaClassName != null && _javaClassName != null)↵ | |||
8 | && info._javaClassName.equals(_javaClassName)))↵ | |||
9 | {↵ | |||
10 | return (↵ | |||
11 | (info._remarks == null && _remarks == null)↵ | |||
12 | || ((info._remarks != null && _remarks != null)↵ | |||
13 | && info._remarks.equals(_remarks)));↵ | |||
14 | }↵ | |||
16 | } | 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.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
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) | 6.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | if ((info._qualifiedName == null && _qualifiedName == null) || ((info._qualifiedName != null && _qualifiedName != null) && info._qualifiedName.equals(_qualifiedName))) |
| 3 | if ((info._dataType == null && _dataType == null) || ((info._dataType != null && _dataType != null) && info._dataType.equals(_dataType))) | ||||||||||||||||||||||||||||||||||||||||
7 | if ((info._schema == null && _schema == null) || ((info._schema != null && _schema != null) && info._schema.equals(_schema))) |
| 4 | if ((info._javaClassName == null && _javaClassName == null) || ((info._javaClassName != null && _javaClassName != null) && info._javaClassName.equals(_javaClassName))) | ||||||||||||||||||||||||||||||||||||||||
8 | return ((info._simpleName == null && _simpleName == null) || ((info._simpleName != null && _simpleName != null) && info._simpleName.equals(_simpleName))); |
| 5 | return ((info._remarks == null && _remarks == null) || ((info._remarks != null && _remarks != null) && info._remarks.equals(_remarks))); |
Row | Violation |
---|---|
1 | Expression info._schema cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression info._javaClassName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression info._schema cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression info._javaClassName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression info._schema cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression info._javaClassName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression info._simpleName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression info._simpleName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression info._simpleName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression info._remarks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Not all possible execution flows end in a return statement |