Skip to content

Commit d08c066

Browse files
committed
Polishing
1 parent 13a2ae2 commit d08c066

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121

2222
/**
2323
* Represents a HTTP output message that allows for setting a streaming body.
24+
* Note that such messages typically do not support {@link #getBody()} access.
2425
*
2526
* @author Arjen Poutsma
2627
* @since 4.0
28+
* @see #setBody
2729
*/
2830
public interface StreamingHttpOutputMessage extends HttpOutputMessage {
2931

3032
/**
31-
* Sets the streaming body for this message.
33+
* Set the streaming body for this message.
3234
* @param body the streaming body
3335
*/
3436
void setBody(Body body);
@@ -42,7 +44,7 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
4244
interface Body {
4345

4446
/**
45-
* Writes this body to the given {@link OutputStream}.
47+
* Write this body to the given {@link OutputStream}.
4648
* @param outputStream the output stream to write to
4749
* @throws IOException in case of errors
4850
*/

spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandlerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
import org.springframework.web.HttpRequestMethodNotSupportedException;
4141
import org.springframework.web.servlet.HandlerMapping;
4242

43-
4443
/**
4544
* Unit tests for ResourceHttpRequestHandler.
4645
*
@@ -311,6 +310,7 @@ public void writeContentNotClosingInputStream() throws Exception {
311310
assertEquals(0, this.response.getContentLength());
312311
}
313312

313+
314314
private long headerAsLong(String responseHeaderName) {
315315
return Long.valueOf(this.response.getHeader(responseHeaderName));
316316
}

0 commit comments

Comments
 (0)