aboutsummaryrefslogtreecommitdiffstats
path: root/utils/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-07-05 10:04:55 -0400
committerJim Hahn <jrh3@att.com>2019-07-05 10:12:14 -0400
commit7ac967b67aca79163b7e7242d32931c59d87d502 (patch)
treeb7e7e83e45ec31a2d0ceab009be9ed9fe7170dd5 /utils/src
parent53f9550501ca1854318c1f552b0aba2e255b6748 (diff)
Fix sonar issue in common/utils
Renamed a constant. Change-Id: I5e1f2fb6de8445a8f667ea48a595773173c6beae Issue-ID: POLICY-1791 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'utils/src')
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java2
-rw-r--r--utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java b/utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java
index 6014b581..14362627 100644
--- a/utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java
+++ b/utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java
@@ -42,7 +42,7 @@ public class NetworkUtil {
/**
* IPv4 Wildcard IP address.
*/
- public static final String IPv4_WILDCARD_ADDRESS = "0.0.0.0";
+ public static final String IPV4_WILDCARD_ADDRESS = "0.0.0.0";
/**
diff --git a/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java b/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
index c29da2c7..a0b8353d 100644
--- a/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
+++ b/utils/src/test/java/org/onap/policy/common/utils/network/NetworkUtilTest.java
@@ -42,7 +42,7 @@ public class NetworkUtilTest {
@Test
public void test() throws InterruptedException, IOException {
- assertNotNull(NetworkUtil.IPv4_WILDCARD_ADDRESS);
+ assertNotNull(NetworkUtil.IPV4_WILDCARD_ADDRESS);
assertFalse(NetworkUtil.isTcpPortOpen(LOCALHOST, NetworkUtil.allocPort(), 1, 5));
assertNotNull(NetworkUtil.getHostname());
assertNotNull(NetworkUtil.getHostIp());