Skip to content

Commit da03eef

Browse files
committed
Annotate DBCursor as NotThreadSafe
1 parent 5db1a52 commit da03eef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/com/mongodb/DBCursor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package com.mongodb;
2020

2121
import com.mongodb.DBApiLayer.Result;
22+
import org.bson.util.annotations.NotThreadSafe;
2223

2324
import java.io.Closeable;
2425
import java.util.ArrayList;
@@ -50,8 +51,10 @@
5051
* List<DBObject> obj = collection.find( query ).skip( 1000 ).limit( 100 ).toArray();
5152
* </pre></blockquote>
5253
*
54+
*
5355
* @dochub cursors
5456
*/
57+
@NotThreadSafe
5558
public class DBCursor implements Iterator<DBObject> , Iterable<DBObject>, Closeable {
5659

5760
/**

0 commit comments

Comments
 (0)