ok2c commented on a change in pull request #271:
URL:
https://github.com/apache/httpcomponents-core/pull/271#discussion_r584626964
##########
File path:
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/ClientH2StreamHandler.java
##########
@@ -166,21 +166,18 @@ private void commitRequest(final HttpRequest request,
final EntityDetails entity
@Override
public void produceOutput() throws HttpException, IOException {
- switch (requestState) {
- case HEADERS:
- exchangeHandler.produceRequest(new RequestChannel() {
+ if (requestState == MessageState.HEADERS) {
Review comment:
@arturobernalg I do not see exactly how this makes anything better
readable. This is _very_ subjective and purely driven by personal fancy of
Sonar developers.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]