Skip to content
Snippets Groups Projects
Commit d35ccfb4 authored by Lars Johansson's avatar Lars Johansson
Browse files

Fix issues as noted by SonarLint + enum comparison

Assignments should not be redundant
Collection sizes and array length comparisons should make sense
Conditionally executed code should be reachable
Empty arrays and collections should be returned instead of null
Local variables should not shadow class fields
Null pointers should not be dereferenced
Pattern Matching for "instanceof" operator should be used instead of simple "instanceof" + cast
Return of boolean expressions should not be wrapped into an "if-then-else" statement
Sections of code should not be commented out
"switch" statements should have at least 3 "case" clauses
Two branches in a conditional structure should not have exactly the same implementation
parent 9ee6b80c
No related branches found
No related tags found
No related merge requests found
Pipeline #112329 passed
Showing with 91 additions and 283 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment