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

Configuration methods that return collections are inconsistent about mutability

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In particular, getTrimmedStringCollection seems to return an immutable collection, whereas getStringCollection returns a mutable one.

      IMO we should always return mutable collections since these methods by definition are doing copies.

        Attachments

          Activity

            People

            • Assignee:
              tlipcon Todd Lipcon
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: