reta commented on code in PR #2008:
URL: https://github.com/apache/cxf/pull/2008#discussion_r1715470973


##########
distribution/src/main/release/samples/performance/jaxrs/src/main/java/org/apache/cxf/performance/https/client/Client.java:
##########
@@ -85,13 +85,15 @@ public void doJob(WebClient webClient) {
                     //GET
                     Response respGet = webClient.get();
                     Asserts.check(respGet.getStatus() == 200, "Get should have 
been OK");
+                    respGet.close();
                     break;
                 case 1:
                     //POST
                     Customer customerPost = new Customer();
                     customerPost.setName("Jack");
                     try (Response respPost = webClient.post(customerPost)) {
                         Asserts.check(respPost.getStatus() == 200, "Post 
should have been OK");
+                        respPost.close();

Review Comment:
   @jgoodyear you don't need that, `try (Response respPost = 
webClient.post(customerPost)) {` closes the response (it is `AutoCloseable`)



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to