diff --git a/remoting/src/main/java/hudson/remoting/ProxyOutputStream.java b/remoting/src/main/java/hudson/remoting/ProxyOutputStream.java index 37b06c2ca1dbb4c739aa90c337092cbb9da1234c..70b31b346c0727026aa6d1c29c85ee9534ea2173 100644 --- a/remoting/src/main/java/hudson/remoting/ProxyOutputStream.java +++ b/remoting/src/main/java/hudson/remoting/ProxyOutputStream.java @@ -203,7 +203,7 @@ final class ProxyOutputStream extends OutputStream { * Unlike {@link EOF}, this just unexports but not closes the stream. */ private static class Unexport extends Command { - protected final int oid; + private final int oid; public Unexport(int oid) { this.oid = oid; @@ -223,11 +223,14 @@ final class ProxyOutputStream extends OutputStream { /** * {@link Command} for sending EOF. */ - private static final class EOF extends Unexport { + private static final class EOF extends Command { + private final int oid; + public EOF(int oid) { - super(oid); + this.oid = oid; } + protected void execute(Channel channel) { OutputStream os = (OutputStream) channel.getExportedObject(oid); channel.unexport(oid);