GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — [ISSUE #560]Optimize BaseCloudEvent#readExtensions method by mxsm · Pull Request #561 · cloudevents/sdk-java Conversation
|
| writer.withContextAttribute(entry.getKey(), (byte[]) entry.getValue()); | ||
| Object value = entry.getValue(); | ||
| if (value instanceof String || value instanceof Number || value instanceof Boolean || value instanceof URI) { | ||
| writer.withContextAttribute(entry.getKey(), value.toString()); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Using the .toString() is not equivalent to previous implementation that was using typed methods.
The original issue is not clear what the optimization is?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
At least 1 approving review is required to merge this pull request.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Optimize BaseCloudEvent#readExtensions method
There was an error while loading. Please reload this page.