X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fhandler%2Fssh%2Fclient%2FInvoker.java;fp=opendaylight%2Fnetconf%2Fnetconf-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Futil%2Fhandler%2Fssh%2Fclient%2FInvoker.java;h=fffb304d26be7b3b32787fa1ae43e5392023bbd8;hp=8636e5ecb5fe55f22ce01cf9a19fb537397c9b0e;hb=b925756421ea8565637d8575d8143dbf46db5a86;hpb=81387f0ae5898b196a54493f9bf4305993f39d1c diff --git a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/ssh/client/Invoker.java b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/ssh/client/Invoker.java index 8636e5ecb5..fffb304d26 100644 --- a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/ssh/client/Invoker.java +++ b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/handler/ssh/client/Invoker.java @@ -19,6 +19,7 @@ public abstract class Invoker { private Invoker(){} protected boolean isInvoked() { + // TODO invoked is always false return invoked; } @@ -34,7 +35,9 @@ public abstract class Invoker { return new Invoker() { @Override void invoke(SshSession session) throws IOException { - if (isInvoked() == true) throw new IllegalStateException("Already invoked."); + if (isInvoked()) { + throw new IllegalStateException("Already invoked."); + } session.startSubSystem(subsystem); }