提交 52e5b4a6 编写于 作者: J Juergen Hoeller

Polishing

上级 76964e16
...@@ -202,9 +202,11 @@ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExpor ...@@ -202,9 +202,11 @@ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExpor
return os; return os;
} }
/** /**
* Decorate an OutputStream to guard against {@code flush()} calls, which * Decorate an {@code OutputStream} to guard against {@code flush()} calls,
* are turned into no-ops. * which are turned into no-ops.
*
* <p>Because {@link ObjectOutputStream#close()} will in fact flush/drain * <p>Because {@link ObjectOutputStream#close()} will in fact flush/drain
* the underlying stream twice, this {@link FilterOutputStream} will * the underlying stream twice, this {@link FilterOutputStream} will
* guard against individual flush calls. Multiple flush calls can lead * guard against individual flush calls. Multiple flush calls can lead
...@@ -212,14 +214,15 @@ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExpor ...@@ -212,14 +214,15 @@ public class HttpInvokerServiceExporter extends RemoteInvocationSerializingExpor
* *
* @see <a href="https://jira.spring.io/browse/SPR-14040">SPR-14040</a> * @see <a href="https://jira.spring.io/browse/SPR-14040">SPR-14040</a>
*/ */
class FlushGuardedOutputStream extends FilterOutputStream { private static class FlushGuardedOutputStream extends FilterOutputStream {
public FlushGuardedOutputStream(OutputStream out) { public FlushGuardedOutputStream(OutputStream out) {
super(out); super(out);
} }
@Override @Override
public void flush() throws IOException { public void flush() throws IOException {
// Do nothing // Do nothing on flush
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册