Skip to content

Commit 0093d6e

Browse files
committed
Polish contribution
See gh-30587
1 parent 324c605 commit 0093d6e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,8 +21,6 @@
2121
import java.net.URI;
2222
import java.util.List;
2323

24-
import jakarta.servlet.http.HttpServletRequest;
25-
2624
import org.springframework.core.Conventions;
2725
import org.springframework.core.MethodParameter;
2826
import org.springframework.core.annotation.AnnotatedElementUtils;
@@ -34,7 +32,6 @@
3432
import org.springframework.http.server.ServletServerHttpRequest;
3533
import org.springframework.http.server.ServletServerHttpResponse;
3634
import org.springframework.lang.Nullable;
37-
import org.springframework.util.Assert;
3835
import org.springframework.validation.BindingResult;
3936
import org.springframework.web.HttpMediaTypeNotAcceptableException;
4037
import org.springframework.web.HttpMediaTypeNotSupportedException;
@@ -157,7 +154,6 @@ protected <T> Object readWithMessageConverters(NativeWebRequest webRequest, Meth
157154
Type paramType) throws IOException, HttpMediaTypeNotSupportedException, HttpMessageNotReadableException {
158155

159156
ServletServerHttpRequest inputMessage = createInputMessage(webRequest);
160-
161157
Object arg = readWithMessageConverters(inputMessage, parameter, paramType);
162158
if (arg == null && checkRequired(parameter)) {
163159
throw new HttpMessageNotReadableException("Required request body is missing: " +

0 commit comments

Comments
 (0)