Closed SergeyNefyodov closed 1 month ago
4 new problems were found
Inspection name | Severity | Problems |
---|---|---|
Convert 'if' statement into 'switch' |
◽️ Notice | 4 |
💡 Qodana analysis was run in the pull request mode: only the changed files were checked ☁️ View the detailed Qodana report
@SergeyNefyodov yeh, we can use casting. This is bad API implementation without base type common method. Better to use switch expression. Currently we have only 2 derived types
if (tableView is not ViewSchedule && tableView is not PanelScheduleView)
return ResolveSet.Append("This view is not a schedule view");
and for this reason we can drop this check
Summary of the Pull Request
What is this about:
I added support for all the methods of TableView. In some places code is strange, because I need TableSectionData to get know count of rows and columns, but this data locates in inheritors of table view only.
Quality Checklist