mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
Uses lambda
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ public class JakartaStreamMultiPartRequest extends AbstractMultiPartRequest {
|
||||
return;
|
||||
}
|
||||
|
||||
List<String> values = parameters.computeIfAbsent(fieldName, k -> new ArrayList<>());
|
||||
List<String> values = parameters.computeIfAbsent(fieldName, ArrayList::new);
|
||||
values.add(fieldValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user