Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2174

URIBuilder.getPathSegments() always returns ArrayList

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.5.13
    • 4.5.14
    • None
    • None

    Description

      URIBuilder.getPathSegments() returns Collections.emptyList() if pathSegments == null.  Please change this to always return an ArrayList so the caller can call add().  Without this change, the caller has to either make another copy of ArrayList every time or the caller has to detect that the List is empty and create an ArrayList.  This is very clunky to use.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nathanila Nathan Reynolds
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: