You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Eric Newton (JIRA)" <ji...@apache.org> on 2015/04/27 22:35:38 UTC

[jira] [Resolved] (ACCUMULO-3754) Replace unused warnings in for-loops with Iterators.size

     [ https://issues.apache.org/jira/browse/ACCUMULO-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Newton resolved ACCUMULO-3754.
-----------------------------------
    Resolution: Fixed

> 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
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)