-
Notifications
You must be signed in to change notification settings - Fork 38.5k
RestClient exchange methods are not nullable #33779
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
Comments
@rstoyanchev Hi, I have some question abount this patch. Currently, in a Kotlin environment, whenever we use the exchange method of RestClient, we have to perform a null check on the result due to the addition of Could you please share whether it is absolutely necessary to mark this method as In my opinion, it might be a good idea to add an additional non-nullable method in |
@Donghh0221 I introduced a |
@sdeleuze Thanks! It will helpful for kotlin user! |
Notice we changed it to an |
The retrieve workflow, a shortcut for
exchange
, can end with null, but exchange itself is not declared asNullable
. There is no reason why an response cannot be exchanged for a null value.The text was updated successfully, but these errors were encountered: