code: public static <T> List<T> asList(T[] a) {
  		if (a == null) {
  			return Collections.emptyList();
  		}
  		return Arrays.asList(a);
  	}
docs: Array to List.
  <p>
  Works like {@link Arrays#asList(Object...)}, but handles null arrays.
  
  @return a list backed by the array.