mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4515 Convert try blocks to try-with-resources
This commit is contained in:
+1
-1
@@ -396,7 +396,7 @@ public class JasperReportsResult extends StrutsResultSupport implements JasperRe
|
||||
*/
|
||||
private void writeReport(HttpServletResponse response, ByteArrayOutputStream output) throws ServletException {
|
||||
try (OutputStream outputStream = response.getOutputStream()) {
|
||||
output.writeTo(output);
|
||||
output.writeTo(outputStream);
|
||||
outputStream.flush();
|
||||
} catch (IOException e) {
|
||||
LOG.error("Error writing report output", e);
|
||||
|
||||
Reference in New Issue
Block a user