Skip to content

refactor: Simplifying State interfaces#892

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

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

Conversation

@copybara-service
Copy link
Copy Markdown

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
@copybara-service copybara-service bot closed this Mar 16, 2026
@copybara-service copybara-service bot deleted the test_872418434 branch March 16, 2026 13:04
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