asList -> static

master
mjkhan21 1 year ago
parent a012929bc7
commit 6069927fef

@ -30,7 +30,7 @@ public class ListSupport<T> {
* @param iterable Collection
* @return List
*/
public List<T> asList(Iterable<T> iterable) {
public static <T> List<T> asList(Iterable<T> iterable) {
return iterable == null ? Collections.emptyList() :
iterable instanceof List<T> ?
(List<T>)iterable :

Loading…
Cancel
Save