File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/IndexColInfo.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/xmlbeans/ChannelXmlBean.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | if (this == obj)↵ | 1 | if (this == obj)↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | if (obj == null)↵ | 3 | if (obj == null)↵ | |
4 | return false;↵ | 4 | return false;↵ | |
5 | if (getClass() != obj.getClass())↵ | 5 | if (getClass() != obj.getClass())↵ | |
6 | return false;↵ | 6 | return false;↵ | |
7 | final IndexColInfo other = (IndexColInfo) obj;↵ | 7 | final ChannelXmlBean other = (ChannelXmlBean) obj;↵ | |
8 | if (_colName == null) {↵ | 8 | if (currentRelease == null) {↵ | |
9 | if (other._colName != null)↵ | 9 | if (other.currentRelease != null)↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | } else if (!_colName.equals(other._colName))↵ | 11 | } else if (!currentRelease.equals(other.currentRelease))↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | if (_ordinalPosition == null) {↵ | 13 | if (name == null) {↵ | |
14 | if (other._ordinalPosition != null)↵ | 14 | if (other.name != null)↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | } else if (!_ordinalPosition.equals(other._ordinalPosition))↵ | 16 | } else if (!name.equals(other.name))↵ | |
17 | return false;↵ | 17 | return false;↵ | |
18 | return true; | 18 | return true; | |
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) | 3.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 68 |
Number of mapped statements | 17 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 3.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (this == obj) | 1 | if (this == obj) | ||||||||||||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||||||||||
3 | if (obj == null) | 3 | if (obj == null) | ||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
5 | if (getClass() != obj.getClass()) |
| 5 | if (getClass() != obj.getClass()) | |||||||||||||||||||||||||||
6 | return false; | 6 | return false; | ||||||||||||||||||||||||||||
| 7 | final ChannelXmlBean other = (ChannelXmlBean)obj; | |||||||||||||||||||||||||||||
7 | final IndexColInfo other = (IndexColInfo)obj; | | |||||||||||||||||||||||||||||
8 | if (_colName == null) |
| 13 | if (name == null) | |||||||||||||||||||||||||||
9 | if (other._colName != null) |
| 14 | if (other.name != null) | |||||||||||||||||||||||||||
10 | return false; | 15 | return false; | ||||||||||||||||||||||||||||
11 | else if (!_colName.equals(other._colName)) |
| 16 | else if (!name.equals(other.name)) | |||||||||||||||||||||||||||
12 | return false; | 17 | return false; | ||||||||||||||||||||||||||||
13 | if (_ordinalPosition == null) |
| 8 | if (currentRelease == null) | |||||||||||||||||||||||||||
14 | if (other._ordinalPosition != null) |
| 9 | if (other.currentRelease != null) | |||||||||||||||||||||||||||
15 | return false; | 10 | return false; | ||||||||||||||||||||||||||||
16 | else if (!_ordinalPosition.equals(other._ordinalPosition)) |
| 11 | else if (!currentRelease.equals(other.currentRelease)) | |||||||||||||||||||||||||||
17 | return false; | 12 | return false; | ||||||||||||||||||||||||||||
18 | return true; | 18 | return true; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type java.lang.String of variable other._colName does not match with type java.lang.String of variable other.name |
3 | Expression other._colName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.String of variable other._colName does not match with type java.lang.String of variable other.name |
6 | Expression other._colName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type java.lang.Integer of variable _ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease |
9 | Type java.lang.Integer of variable other._ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease |
10 | Expression other._ordinalPosition cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Type java.lang.Integer of variable other._ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease |
13 | Type java.lang.Integer of variable other._ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease |
14 | Expression other._ordinalPosition cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type java.lang.Integer of variable other._ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease |
17 | Type java.lang.Integer of variable _ordinalPosition does not match with type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease |