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

GEODE-7119 Version ordinal constants are byte but should be short #3988

Merged
merged 2 commits into from Aug 29, 2019

Conversation

bschuchardt
Copy link
Contributor

@bschuchardt bschuchardt commented Aug 29, 2019

In order to avoid confusion about the range of values a Version ordinal
supports I've changed all the declarations of ordinals to be of type 'short'
instead of 'byte', and have changed the constructor for Version to take a 'short'
ordinal value.

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.

Changed all Version ordinal declarations to be of type 'short' instead of
type 'byte'.  Changed the constructor to take a 'short' instead of a
'byte'.

While we could change Version to use ints instead of shorts I don't see
a compelling reason to do that at this time.
@bschuchardt bschuchardt merged commit 50df321 into develop Aug 29, 2019
@bschuchardt bschuchardt deleted the feature/GEODE-7119 branch August 29, 2019 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants