sepe81 commented on code in PR #778:
URL: https://github.com/apache/struts/pull/778#discussion_r1427112376
##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java:
##########
@@ -356,7 +362,11 @@ public void cleanUp() {
for (FileItem item : items) {
LOG.debug("Removing file {} {}", name, item);
if (!item.isInMemory()) {
- item.delete();
+ try {
+ item.delete();
+ } catch (IOException e) {
+ throw new RuntimeException(e);
Review Comment:
Maybe use more specific
https://docs.oracle.com/javase/8/docs/api/java/io/UncheckedIOException.html ?
--
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]