summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2023-06-13 17:06:09 +0200
committerJon Bratseth <bratseth@vespa.ai>2023-06-13 17:06:09 +0200
commit3ff15111ce265956777dcb861867388b87fda1a8 (patch)
treec0e93a73b43310dba5fb17669c3d6c6d796082f2 /container-core/src/main/java/com/yahoo/container/jdisc/ContentChannelOutputStream.java
parent9869ca2ad01e423d9b250f188e3152fb693d97d8 (diff)
Non-functional changes only
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) {