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

Update java chaincode to be compatible with doc and other implementations #149

Merged
merged 3 commits into from
Apr 7, 2020

Conversation

obermeier
Copy link
Contributor

Description

The java implementation of the fabcar example is in some cases a little bit different from the doc and other implementations like go and javascript. Some aspects are discussed here

  • Index/Key has always three digits. Other implementations do not have leading zeroes
  • Other implementations return the key of the record which was queried.

The key was updated to be compatible with the doc.
Query results contains the key of the record. Because it is printed very often in this tutorial.

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>
E.g. Return key of the queried record

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>
Copy link
Contributor

@lehors lehors left a comment

Choose a reason for hiding this comment

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

This looks good to me, unfortunately my java env is so broken I can't seem to be able to run this to check at the moment. Some spurious indentation and whitespaces seem to have got their way into these changes. Could you please fix those and check I'm not missing any others?
Thanks.

Use always whitespaces to indent the start of the line
Remove unnecessary whitespaces

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>
@obermeier obermeier requested a review from a team as a code owner April 6, 2020 22:01
Copy link
Contributor

@lehors lehors left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@lehors lehors merged commit 5e5d2c8 into hyperledger:master Apr 7, 2020
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.

2 participants