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] [Resolved] (ACCUMULO-3754) Replace unused warnings in for-loops with Iterators.size
Date Mon, 27 Apr 2015 20:35:38 GMT

     [ 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)

Mime
View raw message