Skip to content

Commit 3779fe9

Browse files
committed
@UsesJava8 declaration on inner class
Issue: SPR-13850
1 parent b4f33ad commit 3779fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ public boolean supportsParameter(MethodParameter parameter) {
109109
}
110110

111111
@Override
112-
@UsesJava8
113112
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer,
114113
NativeWebRequest request, WebDataBinderFactory binderFactory) throws Exception {
115114

@@ -182,6 +181,7 @@ private String getPartName(MethodParameter methodParam, RequestPart requestPart)
182181
/**
183182
* Inner class to avoid hard-coded dependency on Java 8 Optional type...
184183
*/
184+
@UsesJava8
185185
private static class OptionalResolver {
186186

187187
public static Object resolveValue(Object value) {

0 commit comments

Comments
 (0)