Adjust to yangtools-2.0.0/odlparent-3.0.0 changes
[netconf.git] / netconf / netconf-console / src / main / java / org / opendaylight / netconf / console / commands / NetconfCommandUtils.java
index e7c9eda71f697b784f3ae4c5c8ab94cd3cca7f54..f705c94062021b393c5b1d72aa1618ef0143720b 100644 (file)
@@ -12,7 +12,7 @@ import com.google.common.base.Strings;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-public class NetconfCommandUtils {
+public final class NetconfCommandUtils {
 
     private static final Pattern IP_PATTERN = Pattern.compile(
             "^([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
@@ -20,6 +20,10 @@ public class NetconfCommandUtils {
                     + "([01]?\\d\\d?|2[0-4]\\d|25[0-5])\\."
                     + "([01]?\\d\\d?|2[0-4]\\d|25[0-5])$");
 
+    private NetconfCommandUtils() {
+
+    }
+
     public static boolean isPortValid(final String devicePort) {
         if (Strings.isNullOrEmpty(devicePort)) {
             return false;