Skip to content

Commit 6ad8ea1

Browse files
committed
JAVA-1100: Deprecated DBCursor.numGetMores and DBCursor.getSizes
1 parent 16f1c64 commit 6ad8ea1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/main/com/mongodb/DBCursor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,16 +522,20 @@ private DBObject _next() {
522522

523523
/**
524524
* gets the number of times, so far, that the cursor retrieved a batch from the database
525-
* @return
525+
* @return The number of times OP_GET_MORE has been called
526+
* @deprecated there is no replacement for this method
526527
*/
528+
@Deprecated
527529
public int numGetMores() {
528530
return _it == null ? 0 : _it.numGetMores();
529531
}
530532

531533
/**
532534
* gets a list containing the number of items received in each batch
533-
* @return
535+
* @return a list containing the number of items received in each batch
536+
* @deprecated there is no replacement for this method
534537
*/
538+
@Deprecated
535539
public List<Integer> getSizes() {
536540
return _it == null ? Collections.<Integer>emptyList() : _it.getSizes();
537541
}

0 commit comments

Comments
 (0)