Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17490

Minor improvement use isEmpty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      Use isEmpty instead size() > o.

       

      size() can be O(1) or O(N), depending on the data structure; .isEmpty() is never O(N).

      Attachments

        Activity

          People

            Unassigned Unassigned
            arturobernalg Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: