|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
21 | 21 | import java.net.URI;
|
22 | 22 | import java.util.List;
|
23 | 23 |
|
24 |
| -import jakarta.servlet.http.HttpServletRequest; |
25 |
| - |
26 | 24 | import org.springframework.core.Conventions;
|
27 | 25 | import org.springframework.core.MethodParameter;
|
28 | 26 | import org.springframework.core.annotation.AnnotatedElementUtils;
|
|
34 | 32 | import org.springframework.http.server.ServletServerHttpRequest;
|
35 | 33 | import org.springframework.http.server.ServletServerHttpResponse;
|
36 | 34 | import org.springframework.lang.Nullable;
|
37 |
| -import org.springframework.util.Assert; |
38 | 35 | import org.springframework.validation.BindingResult;
|
39 | 36 | import org.springframework.web.HttpMediaTypeNotAcceptableException;
|
40 | 37 | import org.springframework.web.HttpMediaTypeNotSupportedException;
|
@@ -157,7 +154,6 @@ protected <T> Object readWithMessageConverters(NativeWebRequest webRequest, Meth
|
157 | 154 | Type paramType) throws IOException, HttpMediaTypeNotSupportedException, HttpMessageNotReadableException {
|
158 | 155 |
|
159 | 156 | ServletServerHttpRequest inputMessage = createInputMessage(webRequest);
|
160 |
| - |
161 | 157 | Object arg = readWithMessageConverters(inputMessage, parameter, paramType);
|
162 | 158 | if (arg == null && checkRequired(parameter)) {
|
163 | 159 | throw new HttpMessageNotReadableException("Required request body is missing: " +
|
|
0 commit comments