/** * Runs value deserialization regardless of whether obj already has the deserialized value. * Will set obj if descriptor is configured to keep deserialized values. * @param coCtx CacheObjectContext. * @return Object. */ private Object deserializeValue(@Nullable CacheObjectValueContext coCtx) { BinaryReaderExImpl reader = reader(null, coCtx != null ? coCtx.kernalContext().config().getClassLoader() : ctx.configuration().getClassLoader(), true); Object obj0 = reader.deserialize(); BinaryClassDescriptor desc = reader.descriptor(); assert desc != null; if (coCtx != null && coCtx.storeValue()) obj = obj0; return obj0; }
/** * Runs value deserialization regardless of whether obj already has the deserialized value. * Will set obj if descriptor is configured to keep deserialized values. * @param coCtx CacheObjectContext. * @return Object. */ private Object deserializeValue(@Nullable CacheObjectValueContext coCtx) { BinaryReaderExImpl reader = reader(null, coCtx != null ? coCtx.kernalContext().config().getClassLoader() : ctx.configuration().getClassLoader(), true); Object obj0 = reader.deserialize(); BinaryClassDescriptor desc = reader.descriptor(); assert desc != null; if (coCtx != null && coCtx.storeValue()) obj = obj0; return obj0; }