Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Java Client API review cleanup #2956

Merged
merged 3 commits into from Sep 15, 2018
Merged

Conversation

mikaelm12
Copy link
Contributor

@mikaelm12 mikaelm12 commented Sep 13, 2018

Hitting a couple of things from the API review here. Part of #2957

  • ALL_CAPS Transfer Format enum
  • Move HubConnection methods
  • Make PingMessage a singleton
  • Spotless clean up

}

public static PingMessage getInstance() {
if (instance == null) {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be lazy-initialized

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, skip the lazy-init and just initialize it in the field.

}

public static PingMessage getInstance() {
if (instance == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, skip the lazy-init and just initialize it in the field.

@mikaelm12 mikaelm12 merged commit 529cfee into release/2.2 Sep 15, 2018
{
}

public static PingMessage getInstance() {return instance;}
Copy link
Member

Choose a reason for hiding this comment

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

nit: formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we always want a new line after a bracket? I'll add a spotless rule

Copy link
Member

Choose a reason for hiding this comment

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

I think it's more about the spaces here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I get that, but it's easier to normalize and write rules for if we just put newlines

@BrennanConroy BrennanConroy deleted the mikael12/APIReviewCleanup branch September 15, 2018 21:46
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.

None yet

4 participants