mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Improve Javadoc for new HttpHeaders features
This commit is contained in:
@@ -67,6 +67,9 @@ class HttpHeadersTests {
|
||||
// content-type value is cached by ReadOnlyHttpHeaders
|
||||
assertThat(readOnly.getContentType()).isEqualTo(MediaType.APPLICATION_JSON);
|
||||
assertThat(writable.getContentType()).isEqualTo(MediaType.TEXT_PLAIN);
|
||||
// The HttpHeaders "copy constructor" creates an HttpHeaders instance
|
||||
// that mutates the state of the original HttpHeaders instance.
|
||||
assertThat(headers.getContentType()).isEqualTo(MediaType.TEXT_PLAIN);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user