timeout = this.timer.newTimeout(new TimerTask() {
@Override
+ @SuppressWarnings("checkstyle:hiddenField")
public void run(final Timeout timeout) {
synchronized (this) {
if (state != State.ESTABLISHED) {
// Do not fail negotiation if promise is done or canceled
// It would result in setting result of the promise second time and that throws exception
- if (isPromiseFinished() == false) {
+ if (!isPromiseFinished()) {
LOG.warn("Netconf session was not established after {}", connectionTimeoutMillis);
changeState(State.FAILED);
return channel.pipeline().replace(handlerKey, handlerKey, decoder);
}
+ @SuppressWarnings("checkstyle:hiddenField")
protected abstract S getSession(L sessionListener, Channel channel, NetconfHelloMessage message)
throws NetconfDocumentedException;