File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ErrorInfo.java | File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/FileWrapperImpl.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | if (this == obj) { return true; }↵ | 1 | if (this == obj) { return true; }↵ | |
2 | if (obj == null) { return false; }↵ | 2 | if (obj == null) { return false; }↵ | |
3 | if (getClass() != obj.getClass()) { return false; }↵ | 3 | if (getClass() != obj.getClass()) { return false; }↵ | |
4 | ErrorInfo other = (ErrorInfo) obj;↵ | 4 | FileWrapperImpl other = (FileWrapperImpl) obj;↵ | |
5 | if (key == null)↵ | 5 | if (_wrappedFile == null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | if (other.key != null) { return false; }↵ | 7 | if (other._wrappedFile != null) { return false; }↵ | |
8 | }↵ | 8 | }↵ | |
9 | else if (!key.equals(other.key)) { return false; }↵ | 9 | else if (!_wrappedFile.equals(other._wrappedFile)) { return false; }↵ | |
10 | return true; | 10 |
| |
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) | 2.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 34 |
Number of mapped statements | 12 |
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) | 4.3 |
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 | FileWrapperImpl other = (FileWrapperImpl)obj; | |||||||||||||||||||||||||||||
7 | ErrorInfo other = (ErrorInfo)obj; | | |||||||||||||||||||||||||||||
8 | if (key == null) |
| 8 | if (_wrappedFile == null) | |||||||||||||||||||||||||||
9 | if (other.key != null) |
| 9 | if (other._wrappedFile != null) | |||||||||||||||||||||||||||
10 | return false; | 10 | return false; | ||||||||||||||||||||||||||||
11 | else if (!key.equals(other.key)) |
| 11 | else if (!_wrappedFile.equals(other._wrappedFile)) | |||||||||||||||||||||||||||
12 | return false; | 12 | return false; | ||||||||||||||||||||||||||||
13 | return true; | 13 | 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 key does not match with type java.io.File of variable _wrappedFile |
3 | Type java.lang.String of variable other.key does not match with type java.io.File of variable other._wrappedFile |
4 | Expression other.key cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression other._wrappedFile cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type java.lang.String of variable other.key does not match with type java.io.File of variable other._wrappedFile |
7 | Type java.lang.String of variable other.key does not match with type java.io.File of variable other._wrappedFile |
8 | Expression other.key cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression other._wrappedFile cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type java.lang.String of variable other.key does not match with type java.io.File of variable other._wrappedFile |
11 | Type java.lang.String of variable key does not match with type java.io.File of variable _wrappedFile |