-
Notifications
You must be signed in to change notification settings - Fork 18
Adding helpers to Config, PubSubMessage, Metadata. Coverage improved #6
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
Conversation
@Getter @Setter | ||
private Signal signal; | ||
private Serializable content; | ||
private Object content; |
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.
Why did you change from Serializable to Object and do the type cast after?
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.
If the type is Serializable, GSON cannot create an instance of it. So I kept the interface the same (allowing only Serializable objects in or out) but store it as an object. The casting is only done on the getter. GSON is used in PubSubMessage#fromJSON. See a better way?
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.
Then add a comment here?
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.
Will do.
@Getter @Setter | ||
private Signal signal; | ||
private Serializable content; | ||
private Object content; |
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.
Then add a comment here?
No description provided.