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

Replace unused warnings in for-loops with Iterators.size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.7.0
    • None
    • 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

            ecn Eric C. Newton
            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