accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Newton (JIRA)" <>
Subject [jira] [Created] (ACCUMULO-2131) while statement used as if statement
Date Fri, 03 Jan 2014 21:02:50 GMT
Eric Newton created ACCUMULO-2131:

             Summary: while statement used as if statement
                 Key: ACCUMULO-2131
             Project: Accumulo
          Issue Type: Bug
          Components: tserver
            Reporter: Eric Newton
            Assignee: Keith Turner
            Priority: Trivial
             Fix For: 1.6.0

Going through PMD output, and this looks a little sketchy in

  private boolean switchSource() throws IOException {
    while (!source.isCurrent()) {
      source = source.getNewDataSource();
      iter = source.iterator();
      if (iflag != null)
        ((InterruptibleIterator) iter).setInterruptFlag(iflag);
      return true;
    return false;

I'm wondering if that "while" should be "if"

This message was sent by Atlassian JIRA

View raw message