Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor builders: NettyConnectionFactory #81

Merged

Conversation

mikkokar
Copy link
Contributor

Simplifies NettyConnectionFactory object construction.

@@ -1,12 +1,12 @@
/**
* Copyright (C) 2013-2018 Expedia Inc.
*
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

Get rid of these <p>s - they cause the copyright notice to get added again when you build.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OMG why do they keep appearing all the time? Must be an IntelliJ Idea setting somewhere.

this.httpRequestOperationFactory = requireNonNull(builder.httpRequestOperationFactory);
}

private static ClientEventLoopFactory eventLoopFactory(String name, int threadCount) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This method seems a little redundant. If the class name is too long, perhaps we can change it? Or create a static-factory method.


/**
* Sets the name.
*
* @param name name
* @return this builder
* @return this Netty
Copy link
Contributor

Choose a reason for hiding this comment

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

No.

@@ -160,7 +146,7 @@ public Builder name(String name) {
* Sets number of client worker threads.
*
* @param clientWorkerThreadsCount number of client worker threads
* @return this builder
* @return this NettyConnectionFactory.Builder
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these changes strictly necessary (see 2 similar changes below)? They are just brief descriptions of return value and don't really need the full class name IMO.

* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Copyright (C) 2013-2018 Expedia Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this caused by the formatter? We want to make sure it matches what the copyright notice generator adds or it will add it again.

@@ -1,12 +1,12 @@
/**
* Copyright (C) 2013-2018 Expedia Inc.
*
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

See previous comment.

@mikkokar mikkokar merged commit 3802961 into ExpediaGroup:master Jan 26, 2018
@mikkokar mikkokar deleted the refactor-netty-connection-factory branch January 26, 2018 17:44
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