Simplify boolean expressions
[netconf.git] / netconf / netconf-console / src / main / java / org / opendaylight / netconf / console / impl / NetconfCommandsImpl.java
index 810a4389d6a1f72a2e980e2a120dc9e2491200c7..47417bc7372597cb9825bd5d6f723d72b13bbcfb 100644 (file)
@@ -202,9 +202,9 @@ public class NetconfCommandsImpl implements NetconfCommands {
                     : updated.get(NetconfConsoleConstants.NETCONF_IP);
             final String devicePort = Strings.isNullOrEmpty(updated.get(NetconfConsoleConstants.NETCONF_PORT))
                     ? netconfNode.getPort().getValue().toString() : updated.get(NetconfConsoleConstants.NETCONF_PORT);
-            final Boolean tcpOnly = (updated.get(NetconfConsoleConstants.TCP_ONLY).equals("true")) ? true : false;
+            final Boolean tcpOnly = updated.get(NetconfConsoleConstants.TCP_ONLY).equals("true");
             final Boolean isSchemaless =
-                    (updated.get(NetconfConsoleConstants.SCHEMALESS).equals("true")) ? true : false;
+                    updated.get(NetconfConsoleConstants.SCHEMALESS).equals("true");
             final String newUsername = Strings.isNullOrEmpty(updated.get(NetconfConsoleConstants.USERNAME))
                     ? updated.get(NetconfConsoleConstants.USERNAME) : username;
             final String newPassword = Strings.isNullOrEmpty(updated.get(NetconfConsoleConstants.PASSWORD))