Skip to content

Assert on AttributeValue List type to ensure consistency when empty and non-empty #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

carlzogh
Copy link
Contributor

@carlzogh carlzogh commented Feb 3, 2022

Following-up on #309 with added assertions to ensure that returning an immutable Collections.emptyList() maintains a consistent behavior when using the transformer library.

The assertion ensures that the returned List type is consistent with the object initialized by AttributeValue for each SDK version (v1 uses a mutable ArrayList whereas v2 uses an immutable UnmodifiableRandomAccessList)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@andclt andclt merged commit 26e2ff7 into aws:master Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants