Skip to content

Conversation

akshaisarma
Copy link
Member

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 99.426% when pulling 356057d on more-helpers into c9f3f60 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 99.426% when pulling 37d69ab on more-helpers into c9f3f60 on master.

@Getter @Setter
private Signal signal;
private Serializable content;
private Object content;
Copy link
Contributor

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?

Copy link
Member Author

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?

Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do.

hbxie
hbxie previously approved these changes Oct 4, 2017
@Getter @Setter
private Signal signal;
private Serializable content;
private Object content;
Copy link
Contributor

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?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 99.426% when pulling 820c024 on more-helpers into c9f3f60 on master.

hbxie
hbxie previously approved these changes Oct 4, 2017
@akshaisarma akshaisarma merged commit 1e3f01a into master Oct 4, 2017
@akshaisarma akshaisarma deleted the more-helpers branch October 4, 2017 05:18
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 99.426% when pulling d155315 on more-helpers into c9f3f60 on master.

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.

3 participants