Ejemplo n.º 1
0
 public static String[] stripAll(String[] strs) {
   return org.apache.commons.lang.StringUtils.stripAll(strs);
 }
Ejemplo n.º 2
0
 /**
  * Transforms a comma-separated list String property in to a array of trimmed strings.
  *
  * <p>This works even if they are separated by whitespace characters (space char, EOL, ...)
  */
 static String[] getListFromProperty(Map<String, String> properties, String key) {
   return (String[])
       ObjectUtils.defaultIfNull(
           StringUtils.stripAll(StringUtils.split(properties.get(key), ',')), new String[0]);
 }