private static Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
final static Set<String> toSet(String s) { if (isEmpty(s)) return null; Set<String> set = new ASet<>(); try { for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); } catch (ParseException e) { throw new RuntimeException(e); } return set; }
private static Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
private static Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
final static Set<String> toSet(String s) { if (isEmpty(s)) return null; Set<String> set = new ASet<>(); try { for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); } catch (ParseException e) { throw new RuntimeException(e); } return set; }
final static Set<String> toSet(String s) { if (isEmpty(s)) return null; Set<String> set = new ASet<>(); try { for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); } catch (ParseException e) { throw new RuntimeException(e); } return set; }
private Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; s = resolve(s); Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
private Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; s = resolve(s); Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
private Set<String> toSet(String[] ss) throws ParseException { if (ss.length == 0) return null; String s = joinnl(ss); if (s.isEmpty()) return null; s = resolve(s); Set<String> set = new ASet<>(); for (Object o : StringUtils.parseListOrCdl(s)) set.add(o.toString()); return set; }
private ObjectList parseListOrCdl(Object o, String location, Object...locationArgs) throws ParseException { try { if (o == null) return null; String s = (o instanceof String[] ? joinnl((String[])o) : o.toString()); if (s.isEmpty()) return null; s = resolve(s); return StringUtils.parseListOrCdl(s); } catch (ParseException e) { throw new SwaggerException(e, "Malformed swagger JSON array encountered in "+location+".", locationArgs); } }
private ObjectList parseListOrCdl(Object o, String location, Object...locationArgs) throws ParseException { try { if (o == null) return null; String s = (o instanceof String[] ? joinnl((String[])o) : o.toString()); if (s.isEmpty()) return null; s = resolve(s); return StringUtils.parseListOrCdl(s); } catch (ParseException e) { throw new SwaggerException(e, "Malformed swagger JSON array encountered in "+location+".", locationArgs); } }
private ObjectList parseListOrCdl(Object o, String location, Object...locationArgs) throws ParseException { try { if (o == null) return null; String s = (o instanceof String[] ? joinnl((String[])o) : o.toString()); if (s.isEmpty()) return null; s = resolve(s); return StringUtils.parseListOrCdl(s); } catch (ParseException e) { throw new SwaggerException(e, "Malformed swagger JSON array encountered in "+location+".", locationArgs); } }