title: SuppressWarnings "all" complaint from Eclipse
body: <p>What is wrong with the <code>SuppressWarnings</code> annotation above the <code>if</code> statement?  Eclipse with Sun JDK 6 provides two syntax error descriptions, both unhelpful and hard to understand, shown in comments.</p>
  
  <pre><code>class TestDeadCode
  {
      //@SuppressWarnings("all")
      public static void main(String[] args)
      {
          @SuppressWarnings("all")  // syntax errors: insert enum body, insert enum id
          if ((Constants.flag0) &amp;&amp; (Constants.flag1))
              System.out.println("hello\n");      
      }
  }
  
  interface Constants
  {
      boolean flag0 = false;
      boolean flag1 = false;
  }
  </code></pre>