Make MultipartResolutionDelegate final (aligned with other delegates)

This commit is contained in:
Juergen Hoeller
2019-03-23 12:14:21 +01:00
parent 62e5585c2e
commit 32b46866c7

View File

@@ -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");
* 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
* @since 4.3
*/
public abstract class MultipartResolutionDelegate {
public final class MultipartResolutionDelegate {
/**
* Indicates an unresolvable value.
@@ -46,6 +46,10 @@ public abstract class MultipartResolutionDelegate {
public static final Object UNRESOLVABLE = new Object();
private MultipartResolutionDelegate() {
}
@Nullable
public static MultipartRequest resolveMultipartRequest(NativeWebRequest webRequest) {
MultipartRequest multipartRequest = webRequest.getNativeRequest(MultipartRequest.class);