You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/01 18:31:00 UTC

[jira] [Updated] (GEODE-5784) AbstractConfig.setAttribute contains duplicate condition with different behaviors

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

ASF GitHub Bot updated GEODE-5784:
----------------------------------
    Labels: pull-request-available  (was: )

> AbstractConfig.setAttribute contains duplicate condition with different behaviors
> ---------------------------------------------------------------------------------
>
>                 Key: GEODE-5784
>                 URL: https://issues.apache.org/jira/browse/GEODE-5784
>             Project: Geode
>          Issue Type: Bug
>          Components: configuration
>            Reporter: Kirk Lund
>            Assignee: Kirk Lund
>            Priority: Major
>              Labels: pull-request-available
>
> AbstractConfig.setAttribute contains duplicate condition with different behaviors. It's not clear to me which is correct or if they should be combined, so I think we'll have to do some testing.
> {noformat}
>       } else if (valueType.equals(String[].class)) {
>         attObjectValue = value.split(",");
> {noformat}
> {noformat}
>       } else if (valueType.equals(String[].class)) {
>         if (value == null || value.length() == 0) {
>           attObjectValue = null;
>         } else {
>           String trimAttName = name.substring(0, name.length() - 1);
>           throw new UnmodifiableException(
>               LocalizedStrings.AbstractConfig_THE_0_CONFIGURATION_ATTRIBUTE_CAN_NOT_BE_SET_FROM_THE_COMMAND_LINE_SET_1_FOR_EACH_INDIVIDUAL_PARAMETER_INSTEAD
>                   .toLocalizedString(name, trimAttName));
>         }
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)