import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class NetconfConsoleUtils {
+public final class NetconfConsoleUtils {
private static final Logger LOG = LoggerFactory.getLogger(NetconfConsoleUtils.class);
* @return :<code>true</code> if not empty, else, <code>false</code>
*/
private static boolean isNetconfNodesPresent(final Topology topology) {
- if (topology == null || topology.getNode() == null || topology.getNode().isEmpty()) {
- return false;
- }
- return true;
+ return topology != null && topology.getNode() != null && !topology.getNode().isEmpty();
}
/**