Skip to content

Comments

refactor: Simplifying State interfaces#892

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_872418434
Open

refactor: Simplifying State interfaces#892
copybara-service[bot] wants to merge 1 commit intomainfrom
test_872418434

Conversation

@copybara-service
Copy link

refactor: Simplifying State interfaces

This is really two changes:

  1. Replace the interface of state from ConcurrentMap to Map
  2. Under the covers use extenral synchornization (Collections.synchronize, etc) along with HashMap wich allows nulls to represent "remove this variable from the session"

This devX improvement comes with a subtle assumption that State will be passed in as a HashMap. This change may cause subtle breaking changes.

This is really two changes:

1. Replace the interface of state from ConcurrentMap to Map
2. Under the covers use extenral synchornization (Collections.synchronize, etc) along with HashMap wich allows nulls to represent "remove this variable from the session"

This devX improvement comes with a subtle assumption that State will be passed in as a HashMap.  This change may cause subtle breaking changes.

PiperOrigin-RevId: 872418434
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.

1 participant