diff --git a/bson/src/main/org/bson/ByteBuf.java b/bson/src/main/org/bson/ByteBuf.java index 4ef5b410a10..e44a97dfc67 100644 --- a/bson/src/main/org/bson/ByteBuf.java +++ b/bson/src/main/org/bson/ByteBuf.java @@ -434,7 +434,7 @@ public interface ByteBuf { ByteBuffer asNIO(); /** - * Gets the current reference count, which starts at 0. + * Gets the current reference count, which is 1 for a new {@link ByteBuf}. * * @return the current count, which must be greater than or equal to 0 */ diff --git a/bson/src/main/org/bson/io/OutputBuffer.java b/bson/src/main/org/bson/io/OutputBuffer.java index c733032bad1..8793acad9a2 100644 --- a/bson/src/main/org/bson/io/OutputBuffer.java +++ b/bson/src/main/org/bson/io/OutputBuffer.java @@ -122,7 +122,10 @@ public int size() { * Get a list of byte buffers that are prepared to be read from; in other words, whose position is 0 and whose limit is the number of * bytes that should read.

Note that the byte buffers may be read-only.

* - * @return the non-null list of byte buffers, in LITTLE_ENDIAN order + * @return the non-null list of byte buffers, in LITTLE_ENDIAN order. The returned {@link ByteBuf}s must eventually be + * {@linkplain ByteBuf#release() released} explicitly, calling {@link OutputBuffer#close()} may be not enough to release them. + * The caller must not use the {@link ByteBuf}s after closing this {@link OutputBuffer}, + * though releasing them is allowed to be done after closing this {@link OutputBuffer}. */ public abstract List getByteBuffers(); diff --git a/driver-core/src/main/com/mongodb/ConnectionString.java b/driver-core/src/main/com/mongodb/ConnectionString.java index cd8f359f35c..8c7d62f98cd 100644 --- a/driver-core/src/main/com/mongodb/ConnectionString.java +++ b/driver-core/src/main/com/mongodb/ConnectionString.java @@ -131,6 +131,7 @@ *

Connection pool configuration:

*