Skip to content

Commit 5ebf29a

Browse files
committed
Update Utils
Change method visibility to public for extensibility
1 parent da0a6e9 commit 5ebf29a

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/java/de/bwaldvogel/mongo/backend

1 file changed

+2
-2
lines changed

core/src/main/java/de/bwaldvogel/mongo/backend/Utils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static boolean nullAwareEquals(Object a, Object b) {
166166
}
167167
}
168168

169-
static int calculateSize(Document document) {
169+
public static int calculateSize(Document document) {
170170
ByteBuf buffer = Unpooled.buffer();
171171
try {
172172
BsonEncoder.encodeDocument(document, buffer);
@@ -509,7 +509,7 @@ static Document firstBatchCursorResponse(String ns, Iterable<Document> documents
509509
return firstBatchCursorResponse(ns, firstBatch);
510510
}
511511

512-
static Document firstBatchCursorResponse(String ns, List<Document> firstBatch) {
512+
public static Document firstBatchCursorResponse(String ns, List<Document> firstBatch) {
513513
return firstBatchCursorResponse(ns, firstBatch, EmptyCursor.get());
514514
}
515515

0 commit comments

Comments
 (0)