Skip to content

GH-1900: Add @nullable to setters for the corresponding nullable getters. #1901

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

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

psychobaatezu
Copy link
Contributor

No description provided.

@pivotal-cla
Copy link

@psychobaatezu Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@psychobaatezu Thank you for signing the Contributor License Agreement!

@garyrussell
Copy link
Contributor

@psychobaatezu This does not pass muster with Sonar's null checking rules, which I just ran against this branch.

https://sonar.spring.io/project/issues?id=org.springframework.kafka%3Aspring-kafka-dist%3Asonar&resolved=false&sinceLeakPeriod=true&types=BUG

Can we not simply add @Nullable to the setter parameters to make the getter/setter back in synch?

@psychobaatezu
Copy link
Contributor Author

@garyrussell That's another possibility. I've amended my commit with that approach instead.

@psychobaatezu psychobaatezu changed the title GH-1900: Move @Nullable from getters to the actual field GH-1900: Add @nullable to setters for the corresponding nullable getters. Aug 10, 2021
@garyrussell garyrussell merged commit acd09de into spring-projects:main Aug 10, 2021
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.

3 participants