com.mongodb.MongoClient implements Closeable, but the close method is actually defined in com.mongodb.Mongo, its superclass. This shouldn't generate a compiler warning, but Eclipse is complaining about it anyway. See JAVA-3000.
The solution is probably to add a close method to MongoClient that just calls super.close.
- is related to
-
JAVA-3000 Deprecate Mongo class
- Closed