title: How do I suppress Eclipse 3.5's warnings of dead code
body: <p>I use a <a href="http://www.leshazlewood.com/?p=5" rel="noreferrer">class for detecting email addresses</a> which uses static final booleans to configure the matching behavior. Since I upgraded to Eclipse 3.5 I get warnings about dead code, since Eclipse notices that one branch in this can not be reached:</p>
  
  <pre><code>private static final boolean ALLOW_DOMAIN_LITERALS = false;
  private static final String domain = ALLOW_DOMAIN_LITERALS ? rfc2822Domain : rfc1035DomainName;
  </code></pre>
  
  <p>Oddly enough it is happy with this:</p>
  
  <pre><code>private static final String domain;
  static {
      if(ALLOW_DOMAIN_LITERALS) {
          domain = rfc2822Domain;
      } else {
          domain= rfc1035DomainName;
      }
  }
  </code></pre>
  
  <p>since it seems to recognize the common <code>if(DEBUG)</code> pattern, but the ternary operator doesn't seem to count.</p>
  
  <p>Since I'd rather not fork the class too much just to keep Eclipse happy, I'd prefer putting an <code>@SuppressWarnings</code> at the top instead of changing the code. Unfortunately I can't find a matching one apart from the brute-force <code>"all"</code>. Is there a value just for the dead code detection?</p>