FAQ
Configuration methods that return collections are inconsistent about mutability
-------------------------------------------------------------------------------

Key: HADOOP-7300
URL: https://issues.apache.org/jira/browse/HADOOP-7300
Project: Hadoop Common
Issue Type: Bug
Components: conf
Affects Versions: 0.22.0
Reporter: Todd Lipcon
Assignee: Todd Lipcon
Fix For: 0.22.0
Attachments: hadoop-7300.txt

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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedMay 18, '11 at 5:55p
activeMay 18, '11 at 5:55p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Todd Lipcon (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase