Skip to content

Commit 476af27

Browse files
authored
Update Javadoc to reflect that forward slash is optional (#1421)
JAVA-5166
1 parent b8170a3 commit 476af27

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

driver-core/src/main/com/mongodb/ConnectionString.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
* <li>{@code :portX} is optional and defaults to :27017 if not provided.</li>
7979
* <li>{@code /database} is the name of the database to login to and thus is only relevant if the
8080
* {@code username:password@} syntax is used. If not specified the "admin" database will be used by default.</li>
81-
* <li>{@code ?options} are connection options. Note that if {@code database} is absent there is still a {@code /}
82-
* required between the last host and the {@code ?} introducing the options. Options are name=value pairs and the pairs
81+
* <li>{@code ?options} are connection options. Options are name=value pairs and the pairs
8382
* are separated by "&amp;". For backwards compatibility, ";" is accepted as a separator in addition to "&amp;",
8483
* but should be considered as deprecated.</li>
8584
* </ul>
@@ -98,8 +97,7 @@
9897
* seed list used to connect, as if each one were provided as host/port pair in a URI using the normal mongodb protocol.</li>
9998
* <li>{@code /database} is the name of the database to login to and thus is only relevant if the
10099
* {@code username:password@} syntax is used. If not specified the "admin" database will be used by default.</li>
101-
* <li>{@code ?options} are connection options. Note that if {@code database} is absent there is still a {@code /}
102-
* required between the last host and the {@code ?} introducing the options. Options are name=value pairs and the pairs
100+
* <li>{@code ?options} are connection options. Options are name=value pairs and the pairs
103101
* are separated by "&amp;". For backwards compatibility, ";" is accepted as a separator in addition to "&amp;",
104102
* but should be considered as deprecated. Additionally with the mongodb+srv protocol, TXT records are looked up from a Domain Name
105103
* Server for the given host, and the text value of each one is prepended to any options on the URI itself. Because the last specified

driver-legacy/src/main/com/mongodb/MongoClientURI.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
* <li>{@code :portX} is optional and defaults to :27017 if not provided.</li>
4343
* <li>{@code /database} is the name of the database to login to and thus is only relevant if the
4444
* {@code username:password@} syntax is used. If not specified the "admin" database will be used by default.</li>
45-
* <li>{@code ?options} are connection options. Note that if {@code database} is absent there is still a {@code /}
46-
* required between the last host and the {@code ?} introducing the options. Options are name=value pairs and the pairs
45+
* <li>{@code ?options} are connection options. Options are name=value pairs and the pairs
4746
* are separated by "&amp;". For backwards compatibility, ";" is accepted as a separator in addition to "&amp;",
4847
* but should be considered as deprecated.</li>
4948
* </ul>
@@ -62,8 +61,7 @@
6261
* seed list used to connect, as if each one were provided as host/port pair in a URI using the normal mongodb protocol.</li>
6362
* <li>{@code /database} is the name of the database to login to and thus is only relevant if the
6463
* {@code username:password@} syntax is used. If not specified the "admin" database will be used by default.</li>
65-
* <li>{@code ?options} are connection options. Note that if {@code database} is absent there is still a {@code /}
66-
* required between the last host and the {@code ?} introducing the options. Options are name=value pairs and the pairs
64+
* <li>{@code ?options} are connection options. Options are name=value pairs and the pairs
6765
* are separated by "&amp;". For backwards compatibility, ";" is accepted as a separator in addition to "&amp;",
6866
* but should be considered as deprecated. Additionally with the mongodb+srv protocol, TXT records are looked up from a Domain Name
6967
* Server for the given host, and the text value of each one is prepended to any options on the URI itself. Because the last specified

0 commit comments

Comments
 (0)