-
Notifications
You must be signed in to change notification settings - Fork 9
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
CORE-18180 Correct StateRef.toString
#1327
CORE-18180 Correct StateRef.toString
#1327
Conversation
ecf9f71
to
405fe8b
Compare
Scanning for breaking API changes introduced by this PR Scan Succeeded |
Jenkins build for PR 1327 build 5 Build Successful: |
ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/StateRef.java
Outdated
Show resolved
Hide resolved
The index in `StateRef.toString` was being formatted which added commas to the output. This created an invalid string representation of a `StateRef`, causing errors if we ever called `StateRef.parse` on the output of `StateRef.toString`. Rely on normal string concatenation instead of `MessageFormat.format` to resolve this.
405fe8b
to
94ac6e9
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
The index in `StateRef.toString` was being formatted which added commas to the output. This created an invalid string representation of a `StateRef`, causing errors if we ever called `StateRef.parse` on the output of `StateRef.toString`. Rely on normal string concatenation instead of `MessageFormat.format` to resolve this.
The index in `StateRef.toString` was being formatted which added commas to the output. This created an invalid string representation of a `StateRef`, causing errors if we ever called `StateRef.parse` on the output of `StateRef.toString`. Rely on normal string concatenation instead of `MessageFormat.format` to resolve this.
The index in
StateRef.toString
was being formatted which added commas to the output. This created an invalid string representation of aStateRef
, causing errors if we ever calledStateRef.parse
on the output ofStateRef.toString
.Rely on normal string concatenation instead of
MessageFormat.format
to resolve this.