StringUtil.trimAll(this.columnRefArr); this.includeColumns = COLS_NA_MULTI; } else {
StringUtil.trimAll(lookupProfiles);
StringUtil.trimAll(lookupProfiles);
final String[] values = StringUtil.splitc(secureEnabledProtocols, ','); StringUtil.trimAll(values);
/** * Resolves active profiles from special property. * This property can be only a base property! * If default active property is not defined, nothing happens. * Otherwise, it will replace currently active profiles. */ protected void resolveActiveProfiles() { if (activeProfilesProp == null) { activeProfiles = null; return; } final PropsEntry pv = data.getBaseProperty(activeProfilesProp); if (pv == null) { // no active profile set as the property, exit return; } final String value = pv.getValue(); if (StringUtil.isBlank(value)) { activeProfiles = null; return; } activeProfiles = StringUtil.splitc(value, ','); StringUtil.trimAll(activeProfiles); }
@Test void testTrim() { assertEquals("123", StringUtil.trimDown(" 123 ")); assertEquals("123", StringUtil.trimDown("123")); assertNull(StringUtil.trimDown("")); assertNull(StringUtil.trimDown(" ")); String[] strings = new String[]{" aa ", "\ra\t", null, " "}; StringUtil.trimAll(strings); assertEquals("aa", strings[0]); assertEquals("a", strings[1]); assertNull(strings[2]); assertEquals("", strings[3]); strings = new String[]{" aa ", "\ra\t", null, " "}; StringUtil.trimDownAll(strings); assertEquals("aa", strings[0]); assertEquals("a", strings[1]); assertNull(strings[2]); assertNull(strings[3]); String s = " \t123\t "; assertEquals("123\t ", StringUtil.trimLeft(s)); assertEquals(" \t123", StringUtil.trimRight(s)); }
public String[] getExceptionsArray() { // is if (exceptions == null) { return null; } String[] result = StringUtil.splitc(exceptions.toString(), ','); StringUtil.trimAll(result); return result; }
StringUtil.trimAll(this.columnRefArr); this.includeColumns = COLS_NA_MULTI; } else {
StringUtil.trimAll(lookupProfiles);
final String[] values = StringUtil.splitc(secureEnabledProtocols, ','); StringUtil.trimAll(values);
StringUtil.trimAll(lookupProfiles);
/** * Resolves active profiles from special property. * This property can be only a base property! * If default active property is not defined, nothing happens. * Otherwise, it will replace currently active profiles. */ protected void resolveActiveProfiles() { if (activeProfilesProp == null) { activeProfiles = null; return; } final PropsEntry pv = data.getBaseProperty(activeProfilesProp); if (pv == null) { // no active profile set as the property, exit return; } final String value = pv.getValue(); if (StringUtil.isBlank(value)) { activeProfiles = null; return; } activeProfiles = StringUtil.splitc(value, ','); StringUtil.trimAll(activeProfiles); }