Skip to content

V07 value impl revision 2 #249

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

Merged
merged 29 commits into from
Jun 19, 2015
Merged

Conversation

xerial
Copy link
Member

@xerial xerial commented Jun 13, 2015

This PR includes several API changes:

  • ExtendedType -> ExtensionType
  • ValueFactory.newXXXValue -> newXXX
    • Even if we remove this suffix, creating Value objects is evident since we are using ValueFactory. ValueFactory is a utility class for the ease of creating value objects. So shortening these method names is better for the developers.
  • Renamed IntegerValue.integerValue, booleanValue to IntegerValue.toInt, toBoolean, etc. to avoid confusion; It is a little bit hard to distinguish whether we are creating Value or primitive type data from the context (e.g., unpackValue(var); var.asIntegerValue().integerValue)
  • Removed public from interface definitions, since public is the default scope

I'll work on adding test cases, proper treatment of float/double values, etc. in the next pull request.

@xerial
Copy link
Member Author

xerial commented Jun 15, 2015

@komamitsu
Could you take a look at jackson test case failures? I fixed test cases in msgpack-core.

}


public static class MapEntry {
Copy link
Member

Choose a reason for hiding this comment

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

We don't need MapEntry class because we can use Map.Entry<Value, Value>.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right. Fixed to use Map.Entry

@xerial xerial assigned xerial and komamitsu and unassigned xerial Jun 16, 2015
@komamitsu
Copy link
Member

@xerial Fixed some errors in jackson-dataformat-msgpack xerial#1

xerial added a commit that referenced this pull request Jun 19, 2015
@xerial xerial merged commit 5ac35d1 into msgpack:v07-value-impl Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants