Browse Source

Polishing

pull/1016/head
Juergen Hoeller 9 years ago
parent
commit
06db5aa43f
  1. 5
      spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java
  2. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java

5
spring-web/src/test/java/org/springframework/web/cors/CorsConfigurationTests.java

@ -24,10 +24,7 @@ import org.junit.Test; @@ -24,10 +24,7 @@ import org.junit.Test;
import org.springframework.http.HttpMethod;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.*;
/**
* Unit tests for {@link CorsConfiguration}.

3
spring-webmvc/src/main/java/org/springframework/web/servlet/support/WebContentGenerator.java

@ -263,8 +263,7 @@ public abstract class WebContentGenerator extends WebApplicationObjectSupport { @@ -263,8 +263,7 @@ public abstract class WebContentGenerator extends WebApplicationObjectSupport {
* subject to content negotiation and variances based on the value of the
* given request headers. The configured request header names are added only
* if not already present in the response "Vary" header.
*
* <p><strong>Note:</strong> this property is only supported on Servlet 3.0+
* <p><strong>Note:</strong> This property is only supported on Servlet 3.0+
* which allows checking existing response header values.
* @param varyByRequestHeaders one or more request header names
* @since 4.3

Loading…
Cancel
Save