Typo : missing quote in toString method's result
No bug here, jus a typo : a missing quote for the id value in the toString method.
@@ -123,7 +123,7 @@ public class DBRef implements Serializable {
@Override
public String toString() {
return "{ "
- + "\"$ref\" : \"" + collectionName + "\", \"$id\" : \"" + id + ""
+ + "\"$ref\" : \"" + collectionName + "\", \"$id\" : \"" + id + "\""
+ (databaseName == null ? "" : ", \"$db\" : \"" + databaseName + "\"")
+ " }";
}
