File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/ColumnDifference.java | File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/ColumnDifference.java | |||
Method name: boolean defaultsEqual()
|
Method name: boolean remarksEqual()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (col1default == null && col2default == null) {↵ | 1 | if (col1remarks == null && col2remarks == null) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if ((col1default == null && col2default != null)↵ | 4 | if ((col1remarks == null && col2remarks != null) ↵ | |
5 | || (col1default != null && col2default == null)) {↵ | 5 | || (col1remarks != null && col2remarks == null)) {↵ | |
6 | return false;↵ | 6 | return false;↵ | |
7 | }↵ | 7 | }↵ | |
8 | return col1default.equals(col2default); | 8 | return col1remarks.equals(col2remarks); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 11 |
Number of mapped statements | 5 |
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) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (col1default == null && col2default == null) |
| 1 | if (col1remarks == null && col2remarks == null) | |||||||||||||||||||
2 | return true; | 2 | return true; | ||||||||||||||||||||
3 | if ((col1default == null && col2default != null) || (col1default != null && col2default == null)) |
| 3 | if ((col1remarks == null && col2remarks != null) || (col1remarks != null && col2remarks == null)) | |||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||
5 | return col1default.equals(col2default); |
| 5 | return col1remarks.equals(col2remarks); |
Row | Violation |
---|