Skip to content

Conversation

Kiminni
Copy link
Contributor

@Kiminni Kiminni commented Oct 16, 2025

Overview

Changed the listener parameter of removeMessageListener methods in RedisMessageListenerContainer to be non-nullable. (issue #3016)

Changes

  • Removed @Nullable annotation from listener parameter in removeMessageListener(MessageListener, Collection<Topic>) method
  • Removed @Nullable annotation from listener parameter in removeMessageListener(MessageListener, Topic) method
  • Removed @Nullable annotation from listener parameter in internal removeListener method
  • Added Assert.notNull(listener, "MessageListener must not be null") validation in removeListener method
  • Simplified listener null check logic (removed unnecessary if (listener != null && ...) condition)

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants