Skip to content

Commit 79d30d8

Browse files
committed
Polishing
1 parent adc595b commit 79d30d8

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @author Arjen Poutsma
2525
* @author Sebastien Deleuze
2626
* @author Brian Clozel
27+
* @since 3.0
2728
* @see HttpStatus.Series
2829
* @see <a href="http://www.iana.org/assignments/http-status-codes">HTTP Status Code Registry</a>
2930
* @see <a href="http://en.wikipedia.org/wiki/List_of_HTTP_status_codes">List of HTTP status codes - Wikipedia</a>

spring-web/src/main/java/org/springframework/http/converter/reactive/package-info.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
2-
* {@link org.springframework.http.converter.reactive.HttpMessageConverter}
2+
* {@link org.springframework.http.converter.reactive.HttpMessageReader},
3+
* {@link org.springframework.http.converter.reactive.HttpMessageWriter}
34
* and implementations for use with reactive
45
* {@link org.springframework.core.codec.Encoder} and
56
* {@link org.springframework.core.codec.Decoder} implementations.

spring-web/src/main/java/org/springframework/http/converter/xml/SourceHttpMessageConverter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ private DOMSource readDOMSource(InputStream body) throws IOException {
174174
}
175175
catch (NullPointerException ex) {
176176
if (!isSupportDtd()) {
177-
throw new HttpMessageNotReadableException("NPE while unmarshalling. " +
178-
"This can happen on JDK 1.6 due to the presence of DTD " +
179-
"declarations, which are disabled.", ex);
177+
throw new HttpMessageNotReadableException("NPE while unmarshalling: " +
178+
"This can happen due to the presence of DTD declarations which are disabled.", ex);
180179
}
181180
throw ex;
182181
}

spring-web/src/main/java/org/springframework/web/util/HtmlUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public static String htmlEscape(String input) {
7474
* http://www.w3.org/TR/html4/sgml/entities.html
7575
* </a>
7676
* @param input the (unescaped) input string
77-
* @param encoding The name of a supported {@link java.nio.charset.Charset charset}
77+
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
7878
* @return the escaped string
7979
* @since 4.1.2
8080
*/
@@ -125,7 +125,7 @@ public static String htmlEscapeDecimal(String input) {
125125
* http://www.w3.org/TR/html4/sgml/entities.html
126126
* </a>
127127
* @param input the (unescaped) input string
128-
* @param encoding The name of a supported {@link java.nio.charset.Charset charset}
128+
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
129129
* @return the escaped string
130130
* @since 4.1.2
131131
*/
@@ -177,7 +177,7 @@ public static String htmlEscapeHex(String input) {
177177
* http://www.w3.org/TR/html4/sgml/entities.html
178178
* </a>
179179
* @param input the (unescaped) input string
180-
* @param encoding The name of a supported {@link java.nio.charset.Charset charset}
180+
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
181181
* @return the escaped string
182182
* @since 4.1.2
183183
*/

spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ protected String determineEncoding(HttpServletRequest request) {
484484
* @return the updated URI string
485485
*/
486486
public String removeSemicolonContent(String requestUri) {
487-
return this.removeSemicolonContent ?
488-
removeSemicolonContentInternal(requestUri) : removeJsessionid(requestUri);
487+
return (this.removeSemicolonContent ?
488+
removeSemicolonContentInternal(requestUri) : removeJsessionid(requestUri));
489489
}
490490

491491
private String removeSemicolonContentInternal(String requestUri) {

0 commit comments

Comments
 (0)