Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8356486

ReverseOrderListView should override reversed() to return `base`

XMLWordPrintable

      `ReverseOrderListView::reversed` calls `List.super.reversed()`, which calls `ReverseOrderListView::of`, which does an instanceof check for ReverseOrderListView which returns `base`. It would be better to add an override of reversed() to ROLV to avoid this roundabout code path. This would also improve reusabiliity of ROLV.

            pminborg Per-Ake Minborg
            pminborg Per-Ake Minborg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: