accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Newton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3754) Replace unused warnings in for-loops with Iterators.size
Date Mon, 27 Apr 2015 20:31:39 GMT
Eric Newton created ACCUMULO-3754:
-------------------------------------

             Summary: Replace unused warnings in for-loops with Iterators.size
                 Key: ACCUMULO-3754
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3754
             Project: Accumulo
          Issue Type: Bug
            Reporter: Eric Newton
            Assignee: Eric Newton
            Priority: Trivial
             Fix For: 1.7.0


It's just cleaner.

{noformat}
 int total = 0;
 for (@SuppressWarnings("unused")
   Entry<Key,Value> entry : scanner) {
     total++;
  }
{noformat}

becomes:

{noformat}
int total = Iterators.size(scanner.iterator());
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message