[jira] [Created] (IGNITE-14515) Support MissingSwitchDefaultCheck checkstyle check

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-14515) Support MissingSwitchDefaultCheck checkstyle check

Anton Vinogradov (Jira)
Maxim Muzafarov created IGNITE-14515:
----------------------------------------

             Summary: Support MissingSwitchDefaultCheck checkstyle check
                 Key: IGNITE-14515
                 URL: https://issues.apache.org/jira/browse/IGNITE-14515
             Project: Ignite
          Issue Type: Task
            Reporter: Maxim Muzafarov
            Assignee: Maxim Muzafarov
             Fix For: 2.11


Every switch statement should include a default case. The break in the default case is redundant, but it prevents a fall-through error if later another case is added.


https://www.oracle.com/java/technologies/javase/codeconventions-statements.html#468



--
This message was sent by Atlassian Jira
(v8.3.4#803005)