core/src/main/java/flex/messaging/io/amf/translator/decoder/ReferenceAwareCalendarDecoder.java [26:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) {
        Object result = super.decodeObject(shell, encodedObject, desiredClass);

        // Only AMF 3 Dates can be sent by reference so we only
        // need to remember this translation to re-establish pointers
        // to the encodedObject if the incoming type was a Date object.
        if (result != null
                && SerializationContext.getSerializationContext().supportDatesByReference
                && encodedObject instanceof java.util.Date) {
            TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext();
            context.getKnownObjects().put(encodedObject, result);
        }

        return result;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core/src/main/java/flex/messaging/io/amf/translator/decoder/ReferenceAwareDateDecoder.java [26:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) {
        Object result = super.decodeObject(shell, encodedObject, desiredClass);

        // Only AMF 3 Dates can be sent by reference so we only
        // need to remember this translation to re-establish pointers
        // to the encodedObject if the incoming type was a Date object.
        if (result != null
                && SerializationContext.getSerializationContext().supportDatesByReference
                && encodedObject instanceof java.util.Date) {
            TypeMarshallingContext context = TypeMarshallingContext.getTypeMarshallingContext();
            context.getKnownObjects().put(encodedObject, result);
        }

        return result;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



