Skip to content

Commit 95330d0

Browse files
committed
Polishing
1 parent 1922f03 commit 95330d0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

spring-web/src/main/java/org/springframework/http/HttpStatus.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2016 the original author or authors.
2+
* Copyright 2002-2017 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.
@@ -128,7 +128,7 @@ public enum HttpStatus {
128128
/**
129129
* {@code 302 Moved Temporarily}.
130130
* @see <a href="http://tools.ietf.org/html/rfc1945#section-9.3">HTTP/1.0, section 9.3</a>
131-
* @deprecated In favor of {@link #FOUND} which will be returned from {@code HttpStatus.valueOf(302)}
131+
* @deprecated in favor of {@link #FOUND} which will be returned from {@code HttpStatus.valueOf(302)}
132132
*/
133133
@Deprecated
134134
MOVED_TEMPORARILY(302, "Moved Temporarily"),
@@ -236,7 +236,7 @@ public enum HttpStatus {
236236
/**
237237
* {@code 413 Request Entity Too Large}.
238238
* @see <a href="http://tools.ietf.org/html/rfc2616#section-10.4.14">HTTP/1.1, section 10.4.14</a>
239-
* @deprecated In favor of {@link #PAYLOAD_TOO_LARGE} which will be returned from {@code HttpStatus.valueOf(413)}
239+
* @deprecated in favor of {@link #PAYLOAD_TOO_LARGE} which will be returned from {@code HttpStatus.valueOf(413)}
240240
*/
241241
@Deprecated
242242
REQUEST_ENTITY_TOO_LARGE(413, "Request Entity Too Large"),
@@ -249,7 +249,7 @@ public enum HttpStatus {
249249
/**
250250
* {@code 414 Request-URI Too Long}.
251251
* @see <a href="http://tools.ietf.org/html/rfc2616#section-10.4.15">HTTP/1.1, section 10.4.15</a>
252-
* @deprecated In favor of {@link #URI_TOO_LONG} which will be returned from {@code HttpStatus.valueOf(414)}
252+
* @deprecated in favor of {@link #URI_TOO_LONG} which will be returned from {@code HttpStatus.valueOf(414)}
253253
*/
254254
@Deprecated
255255
REQUEST_URI_TOO_LONG(414, "Request-URI Too Long"),

spring-web/src/main/java/org/springframework/web/multipart/support/StandardServletMultipartResolver.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2017 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.
@@ -42,6 +42,9 @@
4242
*
4343
* @author Juergen Hoeller
4444
* @since 3.1
45+
* @see #setResolveLazily
46+
* @see HttpServletRequest#getParts()
47+
* @see org.springframework.web.multipart.commons.CommonsMultipartResolver
4548
*/
4649
public class StandardServletMultipartResolver implements MultipartResolver {
4750

@@ -87,7 +90,7 @@ public void cleanupMultipart(MultipartHttpServletRequest request) {
8790
}
8891
}
8992
}
90-
catch (Exception ex) {
93+
catch (Throwable ex) {
9194
LogFactory.getLog(getClass()).warn("Failed to perform cleanup of multipart items", ex);
9295
}
9396
}

0 commit comments

Comments
 (0)