Skip to content

Commit 3a85ce9

Browse files
committed
Update AbstractMongoCollection
Change method visibility to public for extensibility
1 parent a59f329 commit 3a85ce9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,8 @@ public List<Document> insertDocuments(List<Document> documents, boolean isOrdere
469469
return writeErrors;
470470
}
471471

472-
private static Document toErrorDocument(MongoServerError e, int index) {
472+
@VisibleForExternalBackends
473+
public static Document toErrorDocument(MongoServerError e, int index) {
473474
Document error = new Document();
474475
error.put("index", index);
475476
error.put("errmsg", e.getMessageWithoutErrorCode());
@@ -769,7 +770,7 @@ protected P findDocumentPosition(Document document) {
769770

770771
protected abstract Stream<DocumentWithPosition<P>> streamAllDocumentsWithPosition();
771772

772-
private boolean isSystemCollection() {
773+
protected boolean isSystemCollection() {
773774
return AbstractMongoDatabase.isSystemCollection(getCollectionName());
774775
}
775776

0 commit comments

Comments
 (0)