File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/xmlbeans/ChannelXmlBean.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/gui/FontInfo.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 18 | Number of AST nodes: 19 | |||
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 FontInfo other = (FontInfo) obj;↵ | |
8 | if (currentRelease == null) {↵ | 8 | if (_familyName == null) {↵ | |
9 | if (other.currentRelease != null)↵ | 9 | if (other._familyName != null)↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | } else if (!currentRelease.equals(other.currentRelease))↵ | 11 | } else if (!_familyName.equals(other._familyName))↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | if (name == null) {↵ | 13 | if (↵ | |
14 | if (other.name != null)↵ | |||
15 | ↵ | 14 | _isBold != other._isBold)↵ | |
15 | return false;↵ | |||
16 | if (_isItalic != other._isItalic)↵ | |||
16 | return false;↵ | 17 | return false;↵ | |
17 | } else if (!name.equals(other.name))↵ | 18 | if (_size != other._size)↵ | |
18 | return false;↵ | 19 | return false;↵ | |
19 | return true; | 20 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 2 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 2 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 2.7 |
Clones location | Clones are in different classes |
Number of node comparisons | 57 |
Number of mapped statements | 11 |
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) | 2.7 |
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 FontInfo other = (FontInfo)obj; | |||||||||||||||||||||||||||||
7 | final ChannelXmlBean other = (ChannelXmlBean)obj; | | |||||||||||||||||||||||||||||
8 | if (currentRelease == null) |
| 8 | if (_familyName == null) | |||||||||||||||||||||||||||
9 | if (other.currentRelease != null) |
| 9 | if (other._familyName != null) | |||||||||||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||||||||||
11 | else if (!currentRelease.equals(other.currentRelease)) |
| 11 | else if (!_familyName.equals(other._familyName)) | |||||||||||||||||||||||||||
12 | return false; | 12 | return false; |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease does not match with type java.lang.String of variable _familyName |
3 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
4 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
7 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
8 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
11 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease does not match with type java.lang.String of variable _familyName |
12 | Not all possible execution flows end in a return statement |
Number of mapped statements | 11 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.3 |
Clone type | Type 3 |
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 FontInfo other = (FontInfo)obj; | |||||||||||||||||||||||||||||
7 | final ChannelXmlBean other = (ChannelXmlBean)obj; | | |||||||||||||||||||||||||||||
8 | if (currentRelease == null) |
| 8 | if (_familyName == null) | |||||||||||||||||||||||||||
9 | if (other.currentRelease != null) |
| 9 | if (other._familyName != null) | |||||||||||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||||||||||
11 | else if (!currentRelease.equals(other.currentRelease)) |
| 11 | else if (!_familyName.equals(other._familyName)) | |||||||||||||||||||||||||||
12 | return false; | 12 | return false; | ||||||||||||||||||||||||||||
13 | if (name == null) | | |||||||||||||||||||||||||||||
14 | if (other.name != null) | | |||||||||||||||||||||||||||||
15 | return false; |
| | ||||||||||||||||||||||||||||
16 | else if (!name.equals(other.name)) | | |||||||||||||||||||||||||||||
17 | return false; |
| |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable getClass() does not match with type java.lang.Class<> of variable getClass() |
2 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease does not match with type java.lang.String of variable _familyName |
3 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
4 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
7 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
8 | Expression other.currentRelease cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable other.currentRelease does not match with type java.lang.String of variable other._familyName |
11 | Type net.sourceforge.squirrel_sql.client.update.xmlbeans.ReleaseXmlBean of variable currentRelease does not match with type java.lang.String of variable _familyName |
12 | Unmatched return false; |
13 | Unmatched return false; |
14 | Not all possible execution flows end in a return statement |