lcc commented on a change in pull request #445:
URL: https://github.com/apache/struts/pull/445#discussion_r525560074



##########
File path: 
plugins/portlet-mocks/src/test/java/org/apache/struts2/StrutsSpringPortletMockObjectsTest.java
##########
@@ -222,7 +222,8 @@ public void testMockClientDataRequest() {
         assertEquals("Content-type not as expected ?", TEST_CONTENT_TYPE, 
mockClientDataRequest.getContentType());
         mockClientDataRequest.setMethod(TEST_METHOD);
         assertEquals("Method not as expected ?", TEST_METHOD, 
mockClientDataRequest.getMethod());
-        try ( InputStream inputStream = 
mockClientDataRequest.getPortletInputStream() ) {
+       InputStream inputStream = mockClientDataRequest.getPortletInputStream();

Review comment:
       Thanks for the suggestion, the PR has now been updated!




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


Reply via email to