Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simplify boolean expressions
[netconf.git]
/
netconf
/
netconf-netty-util
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
nettyutil
/
AbstractNetconfSessionNegotiator.java
diff --git
a/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
b/netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
index 2f30023f541f94914fac34bac68d8852f383cb68..1a548f41da16a221dd130458246803389127af8d 100644
(file)
--- a/
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
+++ b/
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
@@
-125,7
+125,7
@@
public abstract class AbstractNetconfSessionNegotiator<P extends NetconfSessionP
// 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
// 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);
LOG.warn("Netconf session was not established after {}", connectionTimeoutMillis);
changeState(State.FAILED);