Skip to content

Commit ef1fe7a

Browse files
committed
Added serialVersionUid to DBPointer to remove a compiler warning
1 parent 9f904dc commit ef1fe7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/com/mongodb/DBPointer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@Deprecated
2727
public class DBPointer extends DBRefBase {
2828

29-
static final boolean D = Boolean.getBoolean( "DEBUG.DBPOINTER" );
29+
private static final long serialVersionUID = -1977838613745447826L;
3030

3131
/**
3232
* CTOR used for testing BSON encoding. Otherwise
@@ -41,7 +41,7 @@ public DBPointer(String ns, ObjectId id) {
4141
}
4242

4343
DBPointer( DBObject parent , String fieldName , DB db , String ns , ObjectId id ){
44-
super(db, ns, (Object)id);
44+
super(db, ns, id);
4545

4646
_parent = parent;
4747
_fieldName = fieldName;

0 commit comments

Comments
 (0)