You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Kirk Lund (JIRA)" <ji...@apache.org> on 2018/09/26 16:26:00 UTC
[jira] [Created] (GEODE-5784) AbstractConfig.setAttribute contains
duplicate condition with different behaviors
Kirk Lund created GEODE-5784:
--------------------------------
Summary: 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
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)