Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-627

superfluously null check of SparseIterator.next()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Labels:
      None

      Description

      Looking at the implementation of SparseIterator in OpenMapRealVector.OpenMapSparseIterator there is no chance that the entry return by next() is ever null - so there is no need to chek this in nearly every loop?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aploese Arne Plöse
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: