You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by David Medinets <da...@gmail.com> on 2012/03/05 05:45:47 UTC

How to handle FindBugs Issues?

Should I create a separate JIRA ticket for each issue that FindBugs
finds? Most of them will be trivial. Here is an example. In RFile.java
there is:

  public void printInfo() throws IOException {
    ...
    out.println("\tNum   blocks         : " + String.format("%,d",
indexReader.size()));
    ...
    if (indexReader != null && indexReader.size() > 0) {
      lastKey = indexReader.getLastKey();
    }
    ...
  }

Since the indexReader is already referenced, the null check is not
helpful in its current location. The resolution is simple but should a
few of these issues be rolled into one JIRA? Or a separate JIRA for
each one? Or no JIRA at all?