Skip to content
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

refactor: Nullable enable and suppress warnings #734

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xlegalles
Copy link
Contributor

No description provided.


public IZeebeClientFinalBuildStep UseKeepAlive(TimeSpan keepAlive)
public ZeebePlainClientBuilder(string? address, ILoggerFactory? loggerFactory = null)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you explain why we want to make it nullable?

Copy link
Contributor Author

@xlegalles xlegalles Oct 30, 2024

Choose a reason for hiding this comment

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

I have not changed anything to the behavior of the code but just activated the nullable reference. What happens here is a good example of the benefits of nullable references: the ZeebeClientBuilder can indeed call the ZeebePlainClientBuilder with both arguments null. This is just a constatation and the current behavior. Indeed not what is expected but then it should be changed inanother PR. At least, this current version checks correctly for nullable references when we try to access their properties.

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