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

Remove redundant null check for TreeMap comparator.

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      The function `getEntryUsingComparator` is called only after checking the comparator is null or not. Then again in the function, the comparator is checked for null. This is redundant because the function is called only when the comparator is not null. Thus, there is no need to check it again inside the function.


            martin Martin Buchholz
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: