Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3754

Replace unused warnings in for-loops with Iterators.size

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Labels:
      None

      Description

      It's just cleaner.

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

      becomes:

      int total = Iterators.size(scanner.iterator());
      

        Attachments

          Activity

            People

            • Assignee:
              ecn Eric C. Newton
              Reporter:
              ecn Eric C. Newton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h