Skip to content

Commit 799589e

Browse files
committed
Revised javadoc
Issue: SPR-15466
1 parent 16fdda0 commit 799589e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ResponseBodyAdvice.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@
2727
* or a {@code ResponseEntity} controller method but before the body is written
2828
* with an {@code HttpMessageConverter}.
2929
*
30-
* <p>Implementations may be may be registered directly with
30+
* <p>Implementations may be registered directly with
3131
* {@code RequestMappingHandlerAdapter} and {@code ExceptionHandlerExceptionResolver}
3232
* or more likely annotated with {@code @ControllerAdvice} in which case they
3333
* will be auto-detected by both.
@@ -42,7 +42,8 @@ public interface ResponseBodyAdvice<T> {
4242
* and the selected {@code HttpMessageConverter} type.
4343
* @param returnType the return type
4444
* @param converterType the selected converter type
45-
* @return {@code true} if {@link #beforeBodyWrite} should be invoked, {@code false} otherwise
45+
* @return {@code true} if {@link #beforeBodyWrite} should be invoked;
46+
* {@code false} otherwise
4647
*/
4748
boolean supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType);
4849

@@ -55,7 +56,7 @@ public interface ResponseBodyAdvice<T> {
5556
* @param selectedConverterType the converter type selected to write to the response
5657
* @param request the current request
5758
* @param response the current response
58-
* @return the body that was passed in or a modified, possibly new instance
59+
* @return the body that was passed in or a modified (possibly new) instance
5960
*/
6061
T beforeBodyWrite(T body, MethodParameter returnType, MediaType selectedContentType,
6162
Class<? extends HttpMessageConverter<?>> selectedConverterType,

0 commit comments

Comments
 (0)