title: squid:S2583 – Sonarqube false positive when using switch
body: <p>For the following contrived example (the real code actually makes sense, I promise), Sonarqube 5.3 with Java plugin 2.10 will give me the dreaded “Change this condition so that it does not always evaluate to "true"”:</p>
  
  <pre><code>public String sonarLint(DayOfWeek dow) {
      boolean one = false;
      boolean two = false;
      switch (dow) {
      case MONDAY:
          one = true;
      case TUESDAY:
          two = true;
          break;
      default:
          // nothing
      }
      return one &amp;&amp; two ? "yes" : "no";
  }
  </code></pre>
  
  <p>As far as I can see, when <code>dow</code> is <code>MONDAY</code>, the condition is true, while it’s false otherwise (IntelliJ agrees, BTW, telling me that <code>two</code> whill always be true when it is evaluated at all). Did I hit a bug in Sonarqube here?</p>