Polishing

This commit is contained in:
Juergen Hoeller
2016-08-24 13:01:54 +02:00
parent 1e8065d040
commit 184285ab27
2 changed files with 9 additions and 2 deletions

View File

@@ -286,7 +286,7 @@ public class CorsConfiguration {
throw new IllegalArgumentException("'*' is not a valid exposed header value");
}
if (this.exposedHeaders == null) {
this.exposedHeaders = new ArrayList<String>();
this.exposedHeaders = new ArrayList<String>(4);
}
this.exposedHeaders.add(exposedHeader);
}