private Class<?> getPrimitiveWrapperClass(final Class<?> c) {
      if (c.isPrimitive()) {
        if (c.equals(Long.TYPE)) {
          return Long.class;
        } else if (c.equals(Integer.TYPE)) {
          return Integer.class;
        } else if (c.equals(Double.TYPE)) {
          return Double.class;
        } else if (c.equals(Float.TYPE)) {
          return Float.class;
        } else if (c.equals(Boolean.TYPE)) {
          return Boolean.class;
        } else if (c.equals(Character.TYPE)) {
          return Character.class;
        } else if (c.equals(Short.TYPE)) {
          return Short.class;
        } else if (c.equals(Byte.TYPE)) {
          return Byte.class;
        }
      }
      return c;
    }
A kryo {@link Serializer} for lists created via {@link Arrays#asList(Object...)}.
<p>
Note: This serializer does not support cyclic references, so if one of the objects
gets set the list as attribute this might cause an error during deserialization.
</p>
<p/>
This is from kryo-serializers package. Added explicitly to avoid classpath issues.
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java