Permalink
Browse files

Annotate DBCursor as NotThreadSafe

  • Loading branch information...
1 parent 5db1a52 commit da03eef35bb5db6a0dcadac2ad7dbcc1a8047772 @jyemin jyemin committed May 3, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/com/mongodb/DBCursor.java
@@ -19,6 +19,7 @@
package com.mongodb;
import com.mongodb.DBApiLayer.Result;
+import org.bson.util.annotations.NotThreadSafe;
import java.io.Closeable;
import java.util.ArrayList;
@@ -50,8 +51,10 @@
* List<DBObject> obj = collection.find( query ).skip( 1000 ).limit( 100 ).toArray();
* </pre></blockquote>
*
+ *
* @dochub cursors
*/
+@NotThreadSafe
public class DBCursor implements Iterator<DBObject> , Iterable<DBObject>, Closeable {
/**

0 comments on commit da03eef

Please sign in to comment.