private static Object deserializeStatelessObject()

in serialization/src/main/java/com/twitter/serial/serializer/CoreSerializers.java [571:581]


    private static Object deserializeStatelessObject(@NotNull SerializerInput input)
            throws IOException, ClassNotFoundException {
        final Class<?> klass = Class.forName(input.readNotNullString());
        //noinspection TryWithIdenticalCatches
        try {
            return klass.newInstance();
        } catch (InstantiationException ignore) {
        } catch (IllegalAccessException ignore) {
        }
        throw new IllegalStateException("Object has no default constructor: " + klass);
    }