Make MultipartResolutionDelegate final (aligned with other delegates)
This commit is contained in:
parent
62e5585c2e
commit
32b46866c7
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2018 the original author or authors.
|
* Copyright 2002-2019 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -38,7 +38,7 @@ import org.springframework.web.util.WebUtils;
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
* @since 4.3
|
* @since 4.3
|
||||||
*/
|
*/
|
||||||
public abstract class MultipartResolutionDelegate {
|
public final class MultipartResolutionDelegate {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates an unresolvable value.
|
* Indicates an unresolvable value.
|
||||||
|
@ -46,6 +46,10 @@ public abstract class MultipartResolutionDelegate {
|
||||||
public static final Object UNRESOLVABLE = new Object();
|
public static final Object UNRESOLVABLE = new Object();
|
||||||
|
|
||||||
|
|
||||||
|
private MultipartResolutionDelegate() {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public static MultipartRequest resolveMultipartRequest(NativeWebRequest webRequest) {
|
public static MultipartRequest resolveMultipartRequest(NativeWebRequest webRequest) {
|
||||||
MultipartRequest multipartRequest = webRequest.getNativeRequest(MultipartRequest.class);
|
MultipartRequest multipartRequest = webRequest.getNativeRequest(MultipartRequest.class);
|
||||||
|
|
Loading…
Reference in New Issue