Skip to content
Snippets Groups Projects
  • Lars Johansson's avatar
    d35ccfb4
    Fix issues as noted by SonarLint + enum comparison · d35ccfb4
    Lars Johansson authored
    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
    d35ccfb4
    History
    Fix issues as noted by SonarLint + enum comparison
    Lars Johansson authored
    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
Code owners
Assign users and groups as approvers for specific file changes. Learn more.