This more flexible.
This commit is contained in:
parent
9b0e112a5c
commit
2c8c0b7c7d
@ -136,8 +136,8 @@ public class DriverMongo extends DriverAbstract
|
||||
BasicDBObject raw = (BasicDBObject)dbcoll.findOne(new BasicDBObject(ID_FIELD, id));
|
||||
if (raw == null) return null;
|
||||
|
||||
Long mtime = ((Number)raw.removeField(MTIME_FIELD)).longValue();
|
||||
raw.removeField(ID_FIELD);
|
||||
Long mtime = (Long) raw.removeField(MTIME_FIELD);
|
||||
|
||||
JsonElement element = MongoGsonConverter.mongo2GsonObject(raw);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user