Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F3136129 for ; Wed, 18 May 2011 17:55:29 +0000 (UTC) Received: (qmail 79902 invoked by uid 500); 18 May 2011 17:55:28 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 79608 invoked by uid 500); 18 May 2011 17:55:27 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 79592 invoked by uid 99); 18 May 2011 17:55:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:55:27 +0000 X-ASF-Spam-Status: No, hits=-1998.0 required=5.0 tests=ALL_TRUSTED,FB_GET_MEDS,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 17:55:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 72F12CF50D for ; Wed, 18 May 2011 17:54:47 +0000 (UTC) Date: Wed, 18 May 2011 17:54:47 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <758211057.23010.1305741287467.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HADOOP-7300) Configuration methods that return collections are inconsistent about mutability MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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