Skip to content

Commit bbae625

Browse files
izeyebclozel
authored andcommitted
Add Javadoc since for gh-34745
Closes gh-34940 Signed-off-by: Johnny Lim <izeye@naver.com>
1 parent f376d1b commit bbae625

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
@Nullable
129130
protected Charset detectCharset(HttpHeaders httpHeaders) {

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
@@ -161,6 +161,13 @@ protected Object readFromSource(Class<?> clazz, HttpHeaders headers, Source sour
161161
}
162162
}
163163

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

0 commit comments

Comments
 (0)