Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Remove unnecessary RlpInput and RlpOutput classes #287

Merged

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented Nov 20, 2018

PR description

As part of removing RlpUtils, I noticed that we have some other unnecessary rlp classes. This PR removes VertxBufferRLPInput and VertxBufferRLPOutput.

Our BytesValue library has utilities for wrapping around various types of bytes values including vertx Buffer's. Instead of using custom rlp classes for vertx buffers, we should just wrap these buffers as BytesValue's and use the corresponding BytesValueRlpInput and BytesValueRlpOutput classes.

Also removed FileRLPInput as it was unused (and we probably want to treat files as another type of BytesValue if we did need this functionality).

* <p>Note that as the buffer is wrapped, any change to the content of that buffer may be
* reflected in the returned value.
*
* @param buffer The buffer to wrap.
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a trivial feedback, but what about "The {@link Buffer} to wrap."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair point, but I think I'll just leave it as-is so that the javadoc across this class is consistent.

@mbaxter mbaxter merged commit ec1a8be into PegaSysEng:master Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants