Skip to content

Commit 5bf87c6

Browse files
author
Taeyang Jin (Heli)
authored
fix minor typo and grammar in java comments(javadoc) (#996)
1 parent 3811ce0 commit 5bf87c6

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

bson/src/main/org/bson/BsonDocumentWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class BsonDocumentWrapper<T> extends BsonDocument {
4848
private BsonDocument unwrapped;
4949

5050
/**
51-
* A helper to convert an document of type Object to a BsonDocument
51+
* A helper to convert a document of type Object to a BsonDocument
5252
*
5353
* <p>If not already a BsonDocument it looks up the documents' class in the codecRegistry and wraps it into a BsonDocumentWrapper</p>
5454
*

bson/src/main/org/bson/BsonTimestamp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public BsonTimestamp() {
3737
/**
3838
* Construct a new instance for the given value, which combines the time in seconds and the increment as a single long value.
3939
*
40-
* @param value the timetamp as a single long value
40+
* @param value the timestamp as a single long value
4141
* @since 3.5
4242
*/
4343
public BsonTimestamp(final long value) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public CodeWithScope(final String code, final Document scope) {
4444
}
4545

4646
/**
47-
* Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
47+
* Gets the scope, which is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
4848
*
4949
* @return the scope
5050
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public final class Decimal128 extends Number implements Comparable<Decimal128> {
8383
public static final Decimal128 NaN = fromIEEE754BIDEncoding(NaN_MASK, 0);
8484

8585
/**
86-
* A constant holding a postive zero value of type {@code Decimal128}. It is equal to the value return by
86+
* A constant holding a positive zero value of type {@code Decimal128}. It is equal to the value return by
8787
* {@code Decimal128.valueOf("0")}.
8888
*/
8989
public static final Decimal128 POSITIVE_ZERO = fromIEEE754BIDEncoding(0x3040000000000000L, 0x0000000000000000L);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public BasicDBObjectBuilder add(final String key, final Object val) {
9999
}
100100

101101
/**
102-
* Creates an new empty object and inserts it into the current object with the given key. The new child object becomes the active one.
102+
* Creates a new empty object and inserts it into the current object with the given key. The new child object becomes the active one.
103103
*
104104
* @param key the field name
105105
* @return {@code this} so calls can be chained

driver-core/src/main/com/mongodb/connection/ConnectionPoolSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public long getMaintenanceInitialDelay(final TimeUnit timeUnit) {
363363
* Returns the time period between runs of the maintenance job.
364364
*
365365
* @param timeUnit the TimeUnit to use for this time period
366-
* @return the time period between runs of the maintainance job in the given units
366+
* @return the time period between runs of the maintenance job in the given units
367367
*/
368368
public long getMaintenanceFrequency(final TimeUnit timeUnit) {
369369
return timeUnit.convert(maintenanceFrequencyMS, MILLISECONDS);

driver-core/src/main/com/mongodb/event/ConnectionCheckOutStartedEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import static com.mongodb.assertions.Assertions.notNull;
2222

2323
/**
24-
* An event for when the driver starts to checkout out a connection.
24+
* An event for when the driver starts to check out a connection.
2525
*
2626
* @since 4.0
2727
*/

driver-core/src/main/com/mongodb/internal/async/function/AsyncCallbackFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* An asynchronous callback-based function, its synchronous counterpart is {@link Function}.
2525
* <p>
26-
* A asynchronous function provides no guarantee that it completes before
26+
* An asynchronous function provides no guarantee that it completes before
2727
* (in the happens-before order) the method {@link #apply(Object, SingleResultCallback)} completes,
2828
* and produces either a successful or a failed result by passing it to a {@link SingleResultCallback} after
2929
* (in the happens-before order) the function completes. That is, a callback is used to emulate both normal and abrupt completion of a

driver-reactive-streams/src/test/functional/com/mongodb/reactivestreams/client/syncadapter/SyncMongoClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void enableSleepAfterCursorOpen(final long sleepMS) {
5050
throw new IllegalStateException("Already enabled");
5151
}
5252
if (sleepMS <= 0) {
53-
throw new IllegalArgumentException("sleepMS must be a postive value");
53+
throw new IllegalArgumentException("sleepMS must be a positive value");
5454
}
5555
sleepAfterCursorOpenMS = sleepMS;
5656
}
@@ -66,7 +66,7 @@ public static void enableSleepAfterCursorClose(final long sleepMS) {
6666
throw new IllegalStateException("Already enabled");
6767
}
6868
if (sleepMS <= 0) {
69-
throw new IllegalArgumentException("sleepMS must be a postive value");
69+
throw new IllegalArgumentException("sleepMS must be a positive value");
7070
}
7171
sleepAfterCursorCloseMS = sleepMS;
7272
}
@@ -81,7 +81,7 @@ public static void enableSleepAfterSessionClose(final long sleepMS) {
8181
throw new IllegalStateException("Already enabled");
8282
}
8383
if (sleepMS <= 0) {
84-
throw new IllegalArgumentException("sleepMS must be a postive value");
84+
throw new IllegalArgumentException("sleepMS must be a positive value");
8585
}
8686
sleepAfterSessionCloseMS = sleepMS;
8787
}

0 commit comments

Comments
 (0)