Skip to content
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

Don't attempt to cast to HashMap when Map can do, and also make sure … #202

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

anuraaga
Copy link
Contributor

…runtimeContext isn't poisoned by a Segment.

Issue #, if available:
Fixes #201

Description of changes:
Don't cast to a HashMap explicitly, there's no need. Also noticed an issue not related to #201 in the same codepath that a segment could be used in a way that mutates the global state and fixed it too.

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

…runtimeContext isn't poisoned by a Segment.
Copy link
Contributor

@willarmiros willarmiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@willarmiros willarmiros merged commit 8992822 into aws:master Aug 28, 2020
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.

java.lang.ClassCastException is thrown in version 2.7.0
2 participants