Skip to content

Conversation

cppwfs
Copy link
Contributor

@cppwfs cppwfs commented Sep 9, 2025

  • Add explicit Consumer cast in AggregatorFactoryBean for lockRegistry method reference to resolve type parameter nullability mismatch
  • Complete nullability annotation migration for core integration package

- Add explicit Consumer cast in AggregatorFactoryBean for lockRegistry
   method reference to resolve type parameter nullability mismatch
- Complete nullability annotation migration for core integration package
@cppwfs cppwfs requested a review from artembilan September 9, 2025 14:25
Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Glad to see we are close ! 👌

@@ -182,8 +176,7 @@ public AtomicInteger getDeliveryAttempt() {
* @since 5.1.6
*/
@SuppressWarnings("unchecked")
@Nullable
public <T> T getSourceData() {
public @Nullable <T> T getSourceData() {
Copy link
Member

Choose a reason for hiding this comment

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

I believe this has to be next to the T, the exact return type, not generic definition

return getHeader(REACTOR_CONTEXT, ContextView.class);
}

@SuppressWarnings("unchecked")
@Nullable
public <T> T getHeader(String key, Class<T> type) {
public @Nullable <T> T getHeader(String key, Class<T> type) {
Copy link
Member

Choose a reason for hiding this comment

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

DITTO

@artembilan artembilan added this to the 7.0.0-M3 milestone Sep 10, 2025
@artembilan artembilan merged commit be8165c into spring-projects:main Sep 10, 2025
2 of 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