From 8becfeee75ce4c0ab672cc02dd421b8679952385 Mon Sep 17 00:00:00 2001 From: sgibb Date: Mon, 17 Jul 2023 20:17:05 -0400 Subject: [PATCH] Converts class to record --- .../cloud/gateway/server/mvc/common/MvcUtils.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java index 11c764d8..d93b9fb8 100644 --- a/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java +++ b/spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/common/MvcUtils.java @@ -201,16 +201,7 @@ public abstract class MvcUtils { request.servletRequest().setAttribute(GATEWAY_REQUEST_URL_ATTR, url); } - private final static class ByteArrayInputMessage implements HttpInputMessage { - - private final ServerRequest request; - - private final ByteArrayInputStream body; - - private ByteArrayInputMessage(ServerRequest request, ByteArrayInputStream body) { - this.request = request; - this.body = body; - } + private record ByteArrayInputMessage(ServerRequest request, ByteArrayInputStream body) implements HttpInputMessage { @Override public InputStream getBody() {