mongodb/mongo-java-driver — pull request #94 by seanjreilly (2012-12-27 20:31:15+00:00)
Title: DBCursor.next() throws NoSuchElementException

This pull request includes a fix for https://jira.mongodb.org/browse/JAVA-720. It changes DBCursor.next() to throw the appropriate kind of exception to conform to the contract for java.util.Iterator.

It's a fairly straightforward change, and a unit test is included.

This is bascially the same change as the [previous pull request] (https://github.com/mongodb/mongo-java-driver/pull/92), plus changes as suggested by jyemin.