Skip to content

Landing Okhttp3#293

Merged
domesticmouse merged 5 commits intomasterfrom
okhttp3
Jul 25, 2017
Merged

Landing Okhttp3#293
domesticmouse merged 5 commits intomasterfrom
okhttp3

Conversation

@domesticmouse
Copy link
Copy Markdown
Contributor

No description provided.

@domesticmouse domesticmouse mentioned this pull request Jul 24, 2017
requestHandler.setProxy(proxy == null ? Proxy.NO_PROXY : proxy);
return this;
/**
* Disable retries completely.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you might note that this clears the time limit and retries.

My 2c: I find this method a bit hard to grok. Setting retries to zero should be just as effective (even with e.g., a ten hour timeout)—can we just get users to do that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

JavaDoc made more explicit as to the actions of the method.

public double speedLimit;

/** Returns the speed limit in miles per hour (MPH). */
/** @return Returns the speed limit in miles per hour (MPH). */
Copy link
Copy Markdown
Contributor

@samthor samthor Jul 25, 2017

Choose a reason for hiding this comment

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

Should you rephrase this now?
@return The speed limit in freedom units (MPH).

I mean, just drop the 'Returns'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've always written JavaDoc with Returns as the first word of the @return line, because the generated JavaDoc reads a tad weird without it. Or at least it did back in the 1.4 days...

Copy link
Copy Markdown
Contributor

@samthor samthor left a comment

Choose a reason for hiding this comment

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

LGTM but maybe we should chat about the nits

@domesticmouse domesticmouse merged commit 1b65ff1 into master Jul 25, 2017
@domesticmouse domesticmouse deleted the okhttp3 branch July 25, 2017 05:10
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.

2 participants