@Test public void asList_blank() { assertTrue(Utils.asList("").isEmpty()); }
public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } }
Utils { public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } } }
Utils { public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } } private  Utils(); }
Utils { public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } } private  Utils(); static boolean safeRegexMatch(String pattern, String value); static List<String> asList(String text); static String run(File wd, String cmd, String... args); static String toHexString(byte[] bytes); static String toHexString(byte[] bytes, int start, int len); static String toString(byte[] bytes); }
Utils { public static List<String> asList(String text) { if (StringUtils.isBlank(text)) { return Collections.emptyList(); } else { try { return IOUtils.readLines(new StringReader(text)); } catch (IOException e) { throw new RuntimeException("Cannot get lines", e); } } } private  Utils(); static boolean safeRegexMatch(String pattern, String value); static List<String> asList(String text); static String run(File wd, String cmd, String... args); static String toHexString(byte[] bytes); static String toHexString(byte[] bytes, int start, int len); static String toString(byte[] bytes);  }