Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B5602200ACC for ; Mon, 2 May 2016 19:53:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3ECB1609A6; Mon, 2 May 2016 19:53:14 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0A1961609B2 for ; Mon, 2 May 2016 19:53:13 +0200 (CEST) Received: (qmail 30156 invoked by uid 500); 2 May 2016 17:53:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 30063 invoked by uid 99); 2 May 2016 17:53:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 May 2016 17:53:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0C9B22C1F68 for ; Mon, 2 May 2016 17:53:13 +0000 (UTC) Date: Mon, 2 May 2016 17:53:13 +0000 (UTC) From: "Joerg Schaible (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CONFIGURATION-626) Deprecate ImmutabelConfiguration.getArray() infavour of ImmutabelConfiguration.get(). MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 02 May 2016 17:53:14 -0000 Joerg Schaible created CONFIGURATION-626: -------------------------------------------- Summary: Deprecate ImmutabelConfiguration.getArray() infavour of ImmutabelConfiguration.get(). Key: CONFIGURATION-626 URL: https://issues.apache.org/jira/browse/CONFIGURATION-626 Project: Commons Configuration Issue Type: Improvement Affects Versions: 2.0 Reporter: Joerg Schaible It is not possible to use the getArray methods in a type-safe way supporting arrays for primitives and non-primitives. They are completely superfluous on top of it, since the normal get() methods can simply support the array case in a type-safe manner: {format:java} String[] sArray = config.get(String[].class, "strings"); int[] intArray = config.get(int[].class, "ints"); {format} Therefore getArray should be deprecated and the implementation for get() should support the array case directly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)