Skip to content

Commit 4a594c9

Browse files
committed
Add Javadoc since for gh-34745
Signed-off-by: Johnny Lim <[email protected]>
1 parent 3be3e4d commit 4a594c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ protected final JAXBContext getJaxbContext(Class<?> clazz) {
124124
* Detect the charset from the given {@link HttpHeaders#getContentType()}.
125125
* @param httpHeaders the current HTTP headers
126126
* @return the charset defined in the content type header, or {@code null} if not found
127+
* @since 6.2.8
127128
*/
128129
protected @Nullable Charset detectCharset(HttpHeaders httpHeaders) {
129130
MediaType contentType = httpHeaders.getContentType();

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ protected Object readFromSource(Class<?> clazz, HttpHeaders headers, Source sour
160160
}
161161
}
162162

163+
/**
164+
* Process {@code source} with {@code charset}.
165+
* @param source source to process
166+
* @param charset charset to use
167+
* @return source
168+
* @since 6.2.8
169+
*/
163170
protected Source processSource(Source source, @Nullable Charset charset) {
164171
if (source instanceof StreamSource streamSource) {
165172
InputSource inputSource = new InputSource(streamSource.getInputStream());

0 commit comments

Comments
 (0)