mongodb/mongo-java-driver — pull request #272 by jyemin (2014-10-27 20:18:50+00:00)
Title: JAVA-1519: DBCursor's OptionalFinalizer inner class is now static ...

... and only contains fields for a Mongo instance and a ServerCursor instance.

Doing this prevents it from holding references to the DBCursor state which it does not actually need, allowing the garbage collector
to reclaim that memory before the finalizer runs.

JAVA-1519