You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GetRetainedMessageResult.getPayload's Javadoc says that it is a base64 encoded byte buffer but there is a ByteBufferJsonUnmarshaller which in it's implementation decodes the incoming base64 byte buffer and returns the decoded byte buffer.
Wasn't sure if the link above would render correctly so here is the code I am talking about
/** * <p> * The Base64-encoded message payload of the retained message body. * </p> * * @return <p> * The Base64-encoded message payload of the retained message body. * </p> */publicjava.nio.ByteBuffergetPayload() {
returnpayload;
}
I think either modifying the documentation to reflect that this isn't a Base64 encoded buffer would work or perhaps creating and using a Base64EncodedByteBufferJsonUnmarshaller if we want the documentation to be the same as it is currently.
GetRetainedMessageResult.getPayload's Javadoc says that it is a base64 encoded byte buffer but there is aByteBufferJsonUnmarshallerwhich in it's implementation decodes the incoming base64 byte buffer and returns the decoded byte buffer.https://github.com/aws-amplify/aws-sdk-android/blob/225234b3f75a26ce50613ee2f7b46e0508000f28/aws-android-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/GetRetainedMessageResult.java#L103C1-L114C6
Wasn't sure if the link above would render correctly so here is the code I am talking about
I think either modifying the documentation to reflect that this isn't a Base64 encoded buffer would work or perhaps creating and using a
Base64EncodedByteBufferJsonUnmarshallerif we want the documentation to be the same as it is currently.