Skip to content

Apply Nullability to spring-integration-jmx module #10166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

mjd507
Copy link
Contributor

@mjd507 mjd507 commented Jun 27, 2025

related to: #10083

@mjd507
Copy link
Contributor Author

mjd507 commented Jun 27, 2025

Task :spring-integration-mqtt:test
ClientManagerBackToBackTests > testSameV3ClientIdWorksForPubAndSub() FAILED
java.lang.AssertionError at ClientManagerBackToBackTests.java:128

local build is green, please help me to re-trigger build process.
thank you

@@ -57,7 +58,7 @@ public Object postProcessBeforeInitialization(Object bean, String beanName) thro
@SuppressWarnings("unchecked")
Collection<String> autoCreateChannelCandidatesNames =
(Collection<String>) new DirectFieldAccessor(bean).getPropertyValue("channelNames");
this.siBeanNames.addAll(autoCreateChannelCandidatesNames);
this.siBeanNames.addAll(Objects.requireNonNull(autoCreateChannelCandidatesNames));
Copy link
Member

Choose a reason for hiding this comment

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

FYI: #10167

Signed-off-by: Jiandong Ma <[email protected]>
@@ -138,7 +141,7 @@ public final void onInit() {

@Override
protected void handleMessageInternal(Message<?> message) {
this.delegate.publish(this.notificationMapper.fromMessage(message));
this.delegate.publish(Objects.requireNonNull(this.notificationMapper.fromMessage(message)));
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need this Objects.requireNonNull() yet.

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.

I think that's enough.
I'm taking this locally for final review an merge.
Some clean might still be included.

Thank you!

@artembilan
Copy link
Member

Merged as: 0669e3a.

I'll push some clean up a bit latter in the separate commit.

Thank you again!

@artembilan artembilan closed this Jun 27, 2025
@artembilan
Copy link
Member

Here is follow up: f0591f6

@mjd507 mjd507 deleted the jspecify-jmx branch June 27, 2025 23:55
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.

2 participants