@Test(expected = IllegalArgumentException.class) public void flattenListAsNull() { PatchingConversions.flatten(null); }
public static String flatten(List<String> list) { if (list == null) { throw new IllegalArgumentException("Argument list must be provided"); } StringBuilder sb = new StringBuilder(); for (String p : list) { if (sb.length() > 0) { sb.append(","); } sb.append(p); } return sb.toString(); }
PatchingConversions { public static String flatten(List<String> list) { if (list == null) { throw new IllegalArgumentException("Argument list must be provided"); } StringBuilder sb = new StringBuilder(); for (String p : list) { if (sb.length() > 0) { sb.append(","); } sb.append(p); } return sb.toString(); } }
PatchingConversions { public static String flatten(List<String> list) { if (list == null) { throw new IllegalArgumentException("Argument list must be provided"); } StringBuilder sb = new StringBuilder(); for (String p : list) { if (sb.length() > 0) { sb.append(","); } sb.append(p); } return sb.toString(); } private  PatchingConversions(); }
PatchingConversions { public static String flatten(List<String> list) { if (list == null) { throw new IllegalArgumentException("Argument list must be provided"); } StringBuilder sb = new StringBuilder(); for (String p : list) { if (sb.length() > 0) { sb.append(","); } sb.append(p); } return sb.toString(); } private  PatchingConversions(); static String flatten(List<String> list); static String flattenAndEscape(List<String> paths); }
PatchingConversions { public static String flatten(List<String> list) { if (list == null) { throw new IllegalArgumentException("Argument list must be provided"); } StringBuilder sb = new StringBuilder(); for (String p : list) { if (sb.length() > 0) { sb.append(","); } sb.append(p); } return sb.toString(); } private  PatchingConversions(); static String flatten(List<String> list); static String flattenAndEscape(List<String> paths);  }