title: How to suppress multiple FindBugs warnings for the same line of code
body: <p>I recently discovered FindBugs' <code>@edu.umd.cs.findbugs.annotations.SuppressWarnings</code> annotation which is pretty cool and allows you to basically tell FindBugs to ignore certain warnings.</p>
  
  <p>I've successfully implemented my own SLF4J binding by following their recommendations to take <code>slf4j-simple</code> and modify it with your own logger and logger factory bindings, and I'm pleased to say it works like a charm.</p>
  
  <p>I just ran find bugs on the package that contains this SLF4J binding and it is complaining about a certain line of code written by the original <code>StaticLoggerBinder</code> author (Ceki Gulku):</p>
  
  <pre><code>// to avoid constant folding by the compiler, this field must *not* be final.
  publicstatic String REQUESTED_API_VERSION = "1.6"; // !final
  </code></pre>
  
  <p>FindBugs complains that this field "<strong>isn't final but it should be</strong>". However, the (very) smart people over at SLF4J already thought of that, and placed the surrounding comments provided above.</p>
  
  <p>So, just to get FindBugs to shut up, I've modified the code per my usual way of suppressing FB warnings:</p>
  
  <pre><code>@edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_FINAL")
  public static String REQUESTED_API_VERSION = "1.6";
  </code></pre>
  
  <p>When I clean my project and re-run FindBugs, I get a <em>second</em> warning on the same line of code, this time complaining:</p>
  
  <blockquote>
    <p>This field is never read.  The field is public or protected, so perhaps it is intended to be used with classes not seen as part of the analysis. If not, consider removing it from the class.</p>
  </blockquote>
  
  <p>When I add this second warning suppression:</p>
  
  <pre><code>@edu.umd.cs.findbugs.annotations.SuppressWarnings("MS_SHOULD_BE_FINAL")
  @edu.umd.cs.findbugs.annotations.SuppressWarnings("URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
  public static String REQUESTED_API_VERSION = "1.6";
  </code></pre>
  
  <p>I get a compiler/syntax error from Eclipse:</p>
  
  <blockquote>
    <p>Duplicate annotation @SuppressWarnings.</p>
  </blockquote>
  
  <p><strong>How can I suppress multiple FindBugs warnings on the same line of code?</strong></p>