Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type safety to the GeometryShapeConverter. #916

Merged
merged 1 commit into from
May 16, 2016

Conversation

trishagee
Copy link
Contributor

This reduces the potential of odd subtle bugs and exposed the fact that there was a call to encode something that didn't need encoding.

…al of odd subtle bugs. This exposed the fact that there was a call to decode something that didn't need decoding.
}
return getMapper().getConverters().encode(fromDBObject);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call was unnecessary, and probably wrong - calling encode from inside the decode method was suspicious, and in fact all you need is to add the last fromDBObject to the decodedObjects list

@evanchooly evanchooly added this to the 1.2.0 milestone May 16, 2016
@evanchooly evanchooly merged commit 5d73544 into MorphiaOrg:master May 16, 2016
@trishagee trishagee deleted the geometry-converter branch May 23, 2016 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants