Skip to content

Commit bbcb83a

Browse files
committed
Fixed @SInCE annotations for new findAndModify methods overloads on DBCollection
1 parent 4973226 commit bbcb83a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/com/mongodb/DBCollection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, bo
499499
* @return the document as it was before the modifications, unless {@code returnNew} is true, in which case it returns the document
500500
* after the changes were made
501501
* @throws MongoException
502+
* @since 2.14
502503
* @mongodb.driver.manual reference/command/findAndModify/ Find and Modify
503504
*/
504505
public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew,
@@ -550,8 +551,8 @@ public DBObject findAndModify(final DBObject query, final DBObject fields, final
550551
* @param writeConcern the write concern to apply to this operation
551552
* @return the document as it was before the modifications, unless {@code returnNew} is true, in which case it returns the document
552553
* after the changes were made
554+
* @since 2.14.0
553555
* @mongodb.driver.manual reference/command/findAndModify/ Find and Modify
554-
* @since 2.12.0
555556
*/
556557
public DBObject findAndModify(final DBObject query, final DBObject fields, final DBObject sort,
557558
final boolean remove, final DBObject update,

src/test/com/mongodb/DBCollectionTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,7 @@ public void testBypassDocumentValidationForBulkReplace() {
10881088
fail();
10891089
}
10901090
} catch (MongoException e) {
1091+
e.printStackTrace();
10911092
// success
10921093
}
10931094
}

0 commit comments

Comments
 (0)