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

ArrayList sublist does not use arraylist removeif implementation

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10

      A DESCRIPTION OF THE PROBLEM :
      In the Sublist implementation in ArrayList, when calling removeIf it will use the default Collections implementations instead of the specific removeIf of arraylists. This causes it to be o(n^2) in a sublist where as o(n) in arraylist.
      Perhaps override to call the parents removeIf method.


            psonal Pallavi Sonal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: