You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2016/05/21 19:37:12 UTC

[jira] [Resolved] (CONFIGURATION-626) Deprecate ImmutabelConfiguration.getArray() in favour of ImmutabelConfiguration.get().

     [ https://issues.apache.org/jira/browse/CONFIGURATION-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Heger resolved CONFIGURATION-626.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.1

Fixed in subversion in revision 1744971.

> Deprecate ImmutabelConfiguration.getArray() in favour 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
>             Fix For: 2.1
>
>
> 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)