Skip to content

Commit 33fd201

Browse files
asakaevjyemin
authored andcommitted
Fix typos in Javadoc
1 parent c2590d8 commit 33fd201

35 files changed

+86
-86
lines changed

bson/src/main/org/bson/AbstractBsonReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ protected boolean isClosed() {
180180
protected abstract Decimal128 doReadDecimal128();
181181

182182
/**
183-
* Handles the logic to read Javascript functions
183+
* Handles the logic to read JavaScript functions
184184
*
185185
* @return the String value
186186
*/
187187
protected abstract String doReadJavaScript();
188188

189189
/**
190-
* Handles the logic to read scoped Javascript functions
190+
* Handles the logic to read scoped JavaScript functions
191191
*
192192
* @return the String value
193193
*/

bson/src/main/org/bson/BsonJavaScript.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class BsonJavaScript extends BsonValue {
2828
/**
2929
* Construct a new instance with the given JavaScript code.
3030
*
31-
* @param code the Javascript code
31+
* @param code the JavaScript code
3232
*/
3333
public BsonJavaScript(final String code) {
3434
this.code = code;
@@ -40,7 +40,7 @@ public BsonType getBsonType() {
4040
}
4141

4242
/**
43-
* Get the Javascript code.
43+
* Get the JavaScript code.
4444
*
4545
* @return the code
4646
*/

bson/src/main/org/bson/codecs/EncoderContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private Builder() {
4949
}
5050

5151
/**
52-
* Set to true if the the value to be encoded is a document that will be put in a MongoDB collection.
52+
* Set to true if the value to be encoded is a document that will be put in a MongoDB collection.
5353
*
5454
* @param encodingCollectibleDocument true if the value to be encoded is a document that will be put in a MongoDB collection
5555
* @return this
@@ -69,7 +69,7 @@ public EncoderContext build() {
6969
}
7070

7171
/**
72-
* Returns true if the the value to be encoded is a document that will be put in a MongoDB collection. Encoders for such documents
72+
* Returns true if the value to be encoded is a document that will be put in a MongoDB collection. Encoders for such documents
7373
* might choose to act differently when encoding such as documents, e.g. by re-ordering the fields in some way (like encoding the _id
7474
* field first).
7575
*

bson/src/main/org/bson/io/BsonInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface BsonInput extends Closeable {
4141
byte readByte();
4242

4343
/**
44-
* Reads the specified number of bytes into the given byte array. This is equivalent to to {@code readBytes(bytes, 0, bytes.length)}.
44+
* Reads the specified number of bytes into the given byte array. This is equivalent to {@code readBytes(bytes, 0, bytes.length)}.
4545
*
4646
* @param bytes the byte array to write into
4747
*/

bson/src/main/org/bson/types/Code.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public class Code implements Serializable {
3232
/**
3333
* Construct a new instance with the given code.
3434
*
35-
* @param code the Javascript code
35+
* @param code the JavaScript code
3636
*/
3737
public Code(final String code) {
3838
this.code = code;
3939
}
4040

4141
/**
42-
* Get the Javascript code.
42+
* Get the JavaScript code.
4343
*
4444
* @return the code
4545
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public Builder addCommandListener(final CommandListener commandListener) {
424424
}
425425

426426
/**
427-
* Sets the the command listeners
427+
* Sets the command listeners
428428
*
429429
* @param commandListeners the list of command listeners
430430
* @return this

driver-core/src/main/com/mongodb/client/model/BulkWriteOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public BulkWriteOptions ordered(final boolean ordered) {
5252
}
5353

5454
/**
55-
* Gets the the bypass document level validation flag
55+
* Gets the bypass document level validation flag
5656
*
5757
* @return the bypass document level validation flag
5858
* @since 3.2

driver-core/src/main/com/mongodb/client/model/FindOneAndReplaceOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public long getMaxTime(final TimeUnit timeUnit) {
152152
}
153153

154154
/**
155-
* Gets the the bypass document level validation flag
155+
* Gets the bypass document level validation flag
156156
*
157157
* @return the bypass document level validation flag
158158
* @since 3.2

driver-core/src/main/com/mongodb/client/model/FindOneAndUpdateOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public long getMaxTime(final TimeUnit timeUnit) {
155155
}
156156

157157
/**
158-
* Gets the the bypass document level validation flag
158+
* Gets the bypass document level validation flag
159159
*
160160
* @return the bypass document level validation flag
161161
* @since 3.2

driver-core/src/main/com/mongodb/client/model/InsertManyOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class InsertManyOptions {
3333
* Gets whether the documents should be inserted in the order provided, stopping on the first failed insertion. The default is true.
3434
* If false, the server will attempt to insert all the documents regardless of an failures.
3535
*
36-
* @return whether the the documents should be inserted in order
36+
* @return whether the documents should be inserted in order
3737
*/
3838
public boolean isOrdered() {
3939
return ordered;
@@ -51,7 +51,7 @@ public InsertManyOptions ordered(final boolean ordered) {
5151
}
5252

5353
/**
54-
* Gets the the bypass document level validation flag
54+
* Gets the bypass document level validation flag
5555
*
5656
* @return the bypass document level validation flag
5757
* @since 3.2

0 commit comments

Comments
 (0)