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

[MINOR] Idiomatic naming #100

Merged
merged 5 commits into from
Oct 19, 2018

Conversation

smatthewenglish
Copy link
Contributor

No description provided.

@@ -90,7 +90,7 @@ public PeerTable(final BytesValue nodeId) {
}

/**
* Attempts to add the provided peer to the peer table, and returns a struct signalling one of
* Attempts to add the provided peer to the peer table, and returns an enum signalling one of
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't return an enum it returns a {@link AddResult} instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but isn't AddResult just a, how to say- wrapper?- around those enums?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but it returns an AddResult, not just an enum so we should say that.

@smatthewenglish smatthewenglish merged commit ee9ee93 into PegaSysEng:master Oct 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants