summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java b/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
index d5dc18c1e5e..037506bed7f 100644
--- a/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
+++ b/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
@@ -84,7 +84,7 @@ public class ContentChannelOutputStream extends OutputStream implements Writable
*/
@Override
public void write(byte[] b) throws IOException {
- nonCopyingWrite(Arrays.copyOf(b, b.length));
+ nonCopyingWrite(Arrays.copyOf(b, b.length));
}
/**
@@ -142,10 +142,13 @@ public class ContentChannelOutputStream extends OutputStream implements Writable
}
private class LoggingCompletionHandler implements CompletionHandler {
+
private final CompletionHandler nested;
+
LoggingCompletionHandler(CompletionHandler nested) {
this.nested = nested;
}
+
@Override
public void completed() {
if (nested != null) {