code: public static <T> List<T> asArrayList(T[] values) {
      ArrayList<T> result = new ArrayList<T>();
      Collections.addAll(result, values);
  
      return result;
    }
docs: Arrays.asList cannot be reliably used for SQL parameters on MyBatis < 3.3.0