@@ -64,7 +64,7 @@ Version 5.0 Breaking Changes
6464This driver version introduces the following breaking changes:
6565
6666- Introduces the following changes to the ``ConnectionId`` class:
67-
67+
6868 - The ``ConnectionId`` constructor now accepts a value of type ``long`` as its second
6969 parameter instead of type ``int``. Similarly, the constructor now accepts a value of
7070 type ``Long`` as its third parameter instead of type ``Integer``. Because this change breaks
@@ -92,7 +92,7 @@ This driver version introduces the following breaking changes:
9292 ``SocketSettings.Builder.connectTimeout()`` and
9393 ``SocketSettings.Builder.readTimeout()`` methods. The data type of this
9494 parameter is now ``long`` instead of ``int``.
95-
95+
9696 In earlier versions, this parameter is of type ``int`` for both methods. This
9797 change breaks binary compatibility and requires recompiling, but does not
9898 require code changes. To view an example that shows how to call
@@ -117,7 +117,7 @@ This driver version introduces the following breaking changes:
117117 converts automatically to ``org.mongodb.scala.SingleObservable[Void]``. The
118118 API also exposes ``org.mongodb.scala.Observable[Unit]`` instead of
119119 ``org.mongodb.scala.Observable[Void]``.
120-
120+
121121 For more information, see the `Observable trait in the Scala API documentation
122122 <https://mongodb.github.io/mongo-java-driver/5.0/apidocs/mongo-scala-driver/org/mongodb/scala/Observable.html>`__.
123123
@@ -151,7 +151,7 @@ This driver version introduces the following breaking changes:
151151 responding in the same way as ``Decimal128`` values. In particular,
152152 ``BsonDecimal128.isNumber()`` now returns ``true``, and
153153 ``BsonDecimal128.asNumber()`` returns the equivalent ``BsonNumber``.
154-
154+
155155- Removes the `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html>`__
156156 methods ``getSocketAddress()`` and ``getSocketAddresses()``.
157157
@@ -184,12 +184,12 @@ This driver version introduces the following breaking changes:
184184- Removes the ``DBCollection.getStats()`` and ``DBCollection.isCapped()``
185185 helper methods for the ``collStats`` command. Instead of these methods, you can use the
186186 ``$collStats`` aggregation pipeline stage. For an example of how to use this pipeline
187- stage, see :manual:`What's New <java-deprecations- 4.11>` for v4.11 of the {+driver-short+}.
187+ stage, see :ref:`<version- 4.11>` for the {+driver-short+}.
188188
189189- Removes the ``MapCodec`` and ``IterableCodec`` classes.
190190 Instead of ``MapCodec``, use ``MapCodecProvider``. Instead of ``IterableCodec``,
191191 use ``CollectionCodecProvider``, or ``IterableCodecProvider`` for ``Iterable``
192- types that aren't ``Collection`` types.
192+ types that aren't ``Collection`` types.
193193
194194- Removes the ``sharded()`` and ``nonAtomic()`` methods from the
195195 ``MapReducePublisher`` and ``MapReduceIterable`` classes.
@@ -199,7 +199,7 @@ This driver version introduces the following breaking changes:
199199 - ``Indexes.geoHaystack()``
200200 - ``IndexOptions.getBucketSize()``
201201 - ``IndexOptions.bucketSize()``
202-
202+
203203 Instead, you can use the ``$geoNear`` aggregation pipeline stage or a geospatial
204204 query operator on a 2d index. For more information, see the
205205 :manual:`Geospatial Queries page </geospatial-queries>` in the {+mdb-server+} manual.
@@ -262,7 +262,7 @@ This driver version introduces the following breaking changes:
262262
263263- Removes the following classes from the
264264 ``com.mongodb.event`` package:
265-
265+
266266 - ``ConnectionAddedEvent``
267267 - ``ConnectionPoolOpenedEvent``
268268 - ``ConnectionRemovedEvent``
@@ -273,11 +273,11 @@ This driver version introduces the following breaking changes:
273273
274274 Because of these removals, the following methods were also removed from the
275275 ``ConnectionPoolListener`` interface:
276-
276+
277277 - ``connectionAdded``
278278 - ``connectionPoolOpened``
279279 - ``connectionRemoved``
280-
280+
281281 For more information about the events package, see the `com.mongodb.event
282282 package documentation <{+api+}/apidocs/mongodb-driver-core/com/mongodb/event/package-summary.html>`__
283283
@@ -288,7 +288,7 @@ This driver version introduces the following breaking changes:
288288 change in the ``MongoDatabase.listCollectionNames()`` methods, meaning any
289289 code using these methods must be recompiled. This change does not require any
290290 changes to source code.
291-
291+
292292- Removes the following methods and types related to the
293293 `Stream
294294 <https://mongodb.github.io/mongo-java-driver/4.11/apidocs/mongodb-driver-core/com/mongodb/connection/Stream.html>`__
0 commit comments