Skip to content

Commit

Permalink
Update Utils
Browse files Browse the repository at this point in the history
Change method visibility to public for extensibility
  • Loading branch information
justinchuch committed Jul 6, 2020
1 parent 0d1a81a commit b316dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/de/bwaldvogel/mongo/backend/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ static boolean nullAwareEquals(Object a, Object b) {
}
}

static int calculateSize(Document document) {
public static int calculateSize(Document document) {
ByteBuf buffer = Unpooled.buffer();
try {
BsonEncoder.encodeDocument(document, buffer);
Expand Down Expand Up @@ -509,7 +509,7 @@ static Document firstBatchCursorResponse(String ns, Iterable<Document> documents
return firstBatchCursorResponse(ns, firstBatch);
}

static Document firstBatchCursorResponse(String ns, List<Document> firstBatch) {
public static Document firstBatchCursorResponse(String ns, List<Document> firstBatch) {
return firstBatchCursorResponse(ns, firstBatch, EmptyCursor.get());
}

Expand Down

0 comments on commit b316dbd

Please sign in to comment.