Update reactive streams MongoCollection docs by strogiyotec · Pull Request #1840 · mongodb/mongo-java-driver
Conversation
Copy link
Contributor
JAVA-6000
Update the java doc for MongoCollection
Instead of returning null we return an empty Publisher The naming for returning empty publisher were borrowed from https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpRequest.BodyPublishers.html
If the sequence is empty an empty publisher is returned. Otherwise, if the sequence contains a single element, that publisher is returned. Otherwise a concatenation publisher is returned.
Update the java doc for MongoCollection Instead of returning null we return an empty Publisher The naming for returning empty publisher were borrowed from https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpRequest.BodyPublishers.html ``` If the sequence is empty an empty publisher is returned. Otherwise, if the sequence contains a single element, that publisher is returned. Otherwise a concatenation publisher is returned. ```
strogiyotec
requested a review
from a team
as a code owner
strogiyotec
requested review from
vbabanin
and removed request for
a team
rozza approved these changes Nov 20, 2025
Copy link
Member
rozza
left a comment
rozza
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
rozza
removed the request for review
from vbabanin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
