Skip to content

Commit 0ed238d

Browse files
committed
spacing
1 parent 5700e72 commit 0ed238d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

source/upgrade.txt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ Version 5.0 Breaking Changes
6464
This driver version introduces the following breaking changes:
6565

6666
- Changes the data type of the timeout duration parameter in the
67-
``SocketSettings.Builder.connectTimeout()`` and ``SocketSettings.Builder.readTimeout()``
68-
methods. The data type of this parameter is now ``long`` instead of ``int``.
69-
To view an
70-
example that shows how to instantiate a ``SocketSettings`` instance by using
71-
these methods, see the :ref:`SocketSettings Example
72-
<java-socketsettings-example>` in the Specify MongoClient Settings
73-
guide.
67+
``SocketSettings.Builder.connectTimeout()`` and
68+
``SocketSettings.Builder.readTimeout()`` methods. The data type of this
69+
parameter is now ``long`` instead of ``int``. To view an example that shows
70+
how to call ``SocketSettings`` methods, see the :ref:`SocketSettings Example
71+
<java-socketsettings-example>` in the Specify MongoClient Settings guide. This
72+
change breaks binary compatibility (requires recompiling) but does not require
73+
code changes.
7474

7575
- The ``getServerValue()`` method now returns a value of type ``Long`` instead of type
7676
``Integer``. Similarly, the ``getLocalValue()`` method returns a value of type
@@ -125,20 +125,20 @@ This driver version introduces the following breaking changes:
125125

126126
.. code-block:: java
127127

128-
ClusterSettings.builder()
129-
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
130-
.build()
131-
.getMode()
128+
ClusterSettings.builder()
129+
.applyConnectionString(new ConnectionString("mongodb://127.0.0.1:27017/?replicaSet=replset"))
130+
.build()
131+
.getMode()
132132

133133
.. code-block:: java
134134

135-
ClusterSettings.builder()
136-
.hosts(Collections.singletonList(
135+
ClusterSettings.builder()
136+
.hosts(Collections.singletonList(
137137
new ServerAddress("127.0.0.1", 27017)
138-
))
139-
.requiredReplicaSetName("replset")
140-
.build()
141-
.getMode()
138+
))
139+
.requiredReplicaSetName("replset")
140+
.build()
141+
.getMode()
142142

143143
- Changes how ``BsonDecimal128`` values respond to method calls, by
144144
responding in the same way as ``Decimal128`` values. In particular,

0 commit comments

Comments
 (0)