File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/gui/ArtifactStatus.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 ArtifactStatus other = (ArtifactStatus) obj;↵ | 7 | final FontInfo other = (FontInfo) obj;↵ | |
8 | if (name == null) {↵ | 8 | if (_familyName == null) {↵ | |
9 | if (other.name != null)↵ | 9 | if (other._familyName != null)↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | } else if (!name.equals(other.name))↵ | 11 | } else if (!_familyName.equals(other._familyName))↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | if (type == null) {↵ | 13 | if (↵ | |
14 | if (other.type != null↵ | 14 | _isBold != other._isBold)↵ | |
15 | return false;↵ | |||
15 | )↵ | 16 | if (_isItalic != other._isItalic)↵ | |
16 | return false;↵ | 17 | return false;↵ | |
17 | } else if (!type.equals(other.type))↵ | 18 | ↵ | |
19 | if (_size != other._size)↵ | |||
18 | return false;↵ | 20 | return false;↵ | |
19 | return true; | 21 | return true; | |
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) | 3.9 |
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) | 3.0 |
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 ArtifactStatus other = (ArtifactStatus)obj; | | |||||||||||||||||||||
8 | if (name == null) |
| 8 | if (_familyName == null) | |||||||||||||||||||
9 | if (other.name != null) |
| 9 | if (other._familyName != null) | |||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||
11 | else if (!name.equals(other.name)) |
| 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 java.lang.String of variable other.name does not match with type java.lang.String of variable other._familyName |
3 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.String of variable other.name does not match with type java.lang.String of variable other._familyName |
6 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | 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.6 |
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 ArtifactStatus other = (ArtifactStatus)obj; | | |||||||||||||||||||||
8 | if (name == null) |
| 8 | if (_familyName == null) | |||||||||||||||||||
9 | if (other.name != null) |
| 9 | if (other._familyName != null) | |||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||
11 | else if (!name.equals(other.name)) |
| 11 | else if (!_familyName.equals(other._familyName)) | |||||||||||||||||||
12 | return false; | 12 | return false; | ||||||||||||||||||||
13 | if (type == null) | | |||||||||||||||||||||
14 | if (other.type != null) | | |||||||||||||||||||||
15 | return false; |
| | ||||||||||||||||||||
16 | else if (!type.equals(other.type)) | | |||||||||||||||||||||
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 java.lang.String of variable other.name does not match with type java.lang.String of variable other._familyName |
3 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.String of variable other.name does not match with type java.lang.String of variable other._familyName |
6 | Expression other.name cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression other._familyName cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Unmatched return false; |
9 | Unmatched return false; |
10 | Not all possible execution flows end in a return statement |