mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-14 20:42:21 +00:00
Deprecation: Channel(...) (#4449)
This commit is contained in:
1 parent
2f51583c8b
commit
4e53fe17e4
1 file changed
+3
-2
@@ -2,6 +2,7 @@ package hudson;
|
||||
|
||||
|
||||
import hudson.remoting.Channel;
|
||||
import hudson.remoting.ChannelBuilder;
|
||||
import hudson.remoting.FastPipedInputStream;
|
||||
import hudson.remoting.FastPipedOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -33,12 +34,12 @@ public final class ChannelRule extends ExternalResource {
|
||||
|
||||
Future<Channel> f1 = executors.submit(new Callable<Channel>() {
|
||||
public Channel call() throws Exception {
|
||||
return new Channel("This side of the channel", executors, p1i, p2o);
|
||||
return new ChannelBuilder("This side of the channel", executors).withMode(Channel.Mode.BINARY).build(p1i, p2o);
|
||||
}
|
||||
});
|
||||
Future<Channel> f2 = executors.submit(new Callable<Channel>() {
|
||||
public Channel call() throws Exception {
|
||||
return new Channel("The other side of the channel", executors, p2i, p1o);
|
||||
return new ChannelBuilder("The other side of the channel", executors).withMode(Channel.Mode.BINARY).build(p2i, p1o);
|
||||
}
|
||||
});
|
||||
french = f1.get();
|
||||
|
||||
Reference in new issue
Block a user