From 12eb893e5fb062fe8f1891f36deecf591a5f2eab Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 9 Dec 2015 17:10:34 +0100 Subject: [PATCH] Polishing (backported from 4.1.x) --- .../oxm/jibx/JibxMarshaller.java | 4 +- .../org/springframework/http/HttpHeaders.java | 189 +++++++++--------- .../org/springframework/http/HttpMethod.java | 4 +- ...stractClientHttpRequestFactoryWrapper.java | 15 +- ...ttpComponentsClientHttpRequestFactory.java | 21 +- .../client/InterceptingClientHttpRequest.java | 27 ++- .../InterceptingClientHttpRequestFactory.java | 14 +- .../SimpleClientHttpRequestFactory.java | 8 +- .../client/support/HttpRequestWrapper.java | 24 ++- .../http/server/ServletServerHttpRequest.java | 15 +- .../web/bind/annotation/RequestMethod.java | 14 +- .../web/servlet/FrameworkServlet.java | 6 +- .../AbstractMediaTypeExpression.java | 26 ++- 13 files changed, 188 insertions(+), 179 deletions(-) diff --git a/spring-oxm/src/main/java/org/springframework/oxm/jibx/JibxMarshaller.java b/spring-oxm/src/main/java/org/springframework/oxm/jibx/JibxMarshaller.java index c30fce3ab4a..5e19c3805d1 100644 --- a/spring-oxm/src/main/java/org/springframework/oxm/jibx/JibxMarshaller.java +++ b/spring-oxm/src/main/java/org/springframework/oxm/jibx/JibxMarshaller.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. @@ -234,7 +234,7 @@ public class JibxMarshaller extends AbstractMarshaller implements InitializingBe public boolean supports(Class clazz) { - Assert.notNull(clazz, "'clazz' must not be null"); + Assert.notNull(clazz, "Class must not be null"); if (this.targetClass != null) { return this.targetClass.equals(clazz); } diff --git a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java index 1146533fd47..70d6ec3eb88 100644 --- a/spring-web/src/main/java/org/springframework/http/HttpHeaders.java +++ b/spring-web/src/main/java/org/springframework/http/HttpHeaders.java @@ -1,11 +1,11 @@ /* - * Copyright 2002-2014 the original author or authors. + * Copyright 2002-2015 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. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -43,7 +43,8 @@ import org.springframework.util.StringUtils; /** * Represents HTTP request and response headers, mapping string header names to list of string values. * - *

In addition to the normal methods defined by {@link Map}, this class offers the following convenience methods: + *

In addition to the normal methods defined by {@link Map}, this class offers the following + * convenience methods: *