@Test public void testStringToSetNull() throws Exception { Assert.assertNotNull(pdfStreamResult); final String paths = null; LinkedHashSet<String> set = pdfStreamResult.stringToSet(paths); Assert.assertNull(set); }
LinkedHashSet<String> stringToSet(final String str) { final LinkedHashSet<String> set; if (str == null || str.trim().isEmpty()) { set = null; } else { set = new LinkedHashSet<>(); String[] split = str.split(","); for (String s : split) { String trimmed = s.trim(); if (!trimmed.isEmpty()) { set.add(trimmed); } } } return set; }
PdfStreamResult extends StrutsResultSupport { LinkedHashSet<String> stringToSet(final String str) { final LinkedHashSet<String> set; if (str == null || str.trim().isEmpty()) { set = null; } else { set = new LinkedHashSet<>(); String[] split = str.split(","); for (String s : split) { String trimmed = s.trim(); if (!trimmed.isEmpty()) { set.add(trimmed); } } } return set; } }
PdfStreamResult extends StrutsResultSupport { LinkedHashSet<String> stringToSet(final String str) { final LinkedHashSet<String> set; if (str == null || str.trim().isEmpty()) { set = null; } else { set = new LinkedHashSet<>(); String[] split = str.split(","); for (String s : split) { String trimmed = s.trim(); if (!trimmed.isEmpty()) { set.add(trimmed); } } } return set; }  }
PdfStreamResult extends StrutsResultSupport { LinkedHashSet<String> stringToSet(final String str) { final LinkedHashSet<String> set; if (str == null || str.trim().isEmpty()) { set = null; } else { set = new LinkedHashSet<>(); String[] split = str.split(","); for (String s : split) { String trimmed = s.trim(); if (!trimmed.isEmpty()) { set.add(trimmed); } } } return set; }  void setCssPaths(final String cssPaths); void setRenderer(String renderer); void setContentDisposition(String contentDisposition); void setAllowCaching(boolean allowCaching); }
PdfStreamResult extends StrutsResultSupport { LinkedHashSet<String> stringToSet(final String str) { final LinkedHashSet<String> set; if (str == null || str.trim().isEmpty()) { set = null; } else { set = new LinkedHashSet<>(); String[] split = str.split(","); for (String s : split) { String trimmed = s.trim(); if (!trimmed.isEmpty()) { set.add(trimmed); } } } return set; }  void setCssPaths(final String cssPaths); void setRenderer(String renderer); void setContentDisposition(String contentDisposition); void setAllowCaching(boolean allowCaching);  }