Skip to content

Better HttpVersion and ProtocolVersion.#131

Merged
garydgregory merged 1 commit intoapache:masterfrom
garydgregory:better_http_version
Jun 15, 2019
Merged

Better HttpVersion and ProtocolVersion.#131
garydgregory merged 1 commit intoapache:masterfrom
garydgregory:better_http_version

Conversation

@garydgregory
Copy link
Copy Markdown
Member

No description provided.

* @throws IllegalArgumentException if either major or minor version number is negative
*/
@Override
public ProtocolVersion forVersion(final int major, final int minor) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@garydgregory I think forVersion method should be removed. It not being used anywhere in the productive code and has been rendered superfluous by static get method.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ok2c I force pushed to remove the methods and another tweak.

Remove forVersion methods and refactor to avoid duplicate code.
@garydgregory garydgregory force-pushed the better_http_version branch from 83cc47b to 61ec2d0 Compare June 15, 2019 00:10
Copy link
Copy Markdown
Member

@ok2c ok2c left a comment

Choose a reason for hiding this comment

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

@garydgregory Looks good to me. Please do try to make sure there is nothing missing before merging to avoid follow-up commits.

@garydgregory garydgregory merged commit 4305837 into apache:master Jun 15, 2019
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