Skip to content

Conversation

artembilan
Copy link
Member

The partitions map in the PartitionedDispatcher is based on the index for key, which is really an overkill and regular list with indexed access should be enough.

  • Fix PartitionedDispatcher to use a List for partitions
  • Remove @SuppressWarnings("NullAway") from dispatch() method since there is not going to be a null from List.get()

The `partitions` map in the `PartitionedDispatcher` is based on the index for `key`,
which is really an overkill and regular list with indexed access should be enough.

* Fix `PartitionedDispatcher` to use a `List` for `partitions`
* Remove `@SuppressWarnings("NullAway")` from `dispatch()` method
since there is not going to be a null from `List.get()`
@cppwfs
Copy link
Contributor

cppwfs commented Aug 6, 2025

The change is a good idea.
LGTM

@cppwfs cppwfs merged commit dfed795 into spring-projects:main Aug 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants