From 88c788ee590aeff3e408338ad99df004a1213371 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Sun, 20 Aug 2017 13:12:13 -0500 Subject: sonar criticals and some majors Issue-ID: POLICY-114 Change-Id: I5fe12b6538379a4d018bb76173247fe53fba21d7 Signed-off-by: Jorge Hernandez --- .../org/onap/policy/drools/utils/NetworkUtil.java | 35 ++++++++++++++++++++++ .../onap/policy/drools/utils/ReflectionUtil.java | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 policy-utils/src/main/java/org/onap/policy/drools/utils/NetworkUtil.java (limited to 'policy-utils/src') diff --git a/policy-utils/src/main/java/org/onap/policy/drools/utils/NetworkUtil.java b/policy-utils/src/main/java/org/onap/policy/drools/utils/NetworkUtil.java new file mode 100644 index 00000000..f6c837f5 --- /dev/null +++ b/policy-utils/src/main/java/org/onap/policy/drools/utils/NetworkUtil.java @@ -0,0 +1,35 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.drools.utils; + +/** + * Network Utilities + */ +public class NetworkUtil { + + /** + * IPv4 Wildcard IP address + */ + public static final String IPv4_WILDCARD_ADDRESS = "0.0.0.0"; + + /* Other methods will be added as needed */ + +} diff --git a/policy-utils/src/main/java/org/onap/policy/drools/utils/ReflectionUtil.java b/policy-utils/src/main/java/org/onap/policy/drools/utils/ReflectionUtil.java index eeb7f1f6..ba00c57e 100644 --- a/policy-utils/src/main/java/org/onap/policy/drools/utils/ReflectionUtil.java +++ b/policy-utils/src/main/java/org/onap/policy/drools/utils/ReflectionUtil.java @@ -57,7 +57,7 @@ public class ReflectionUtil { classLoader); return aClass; } catch (Exception e) { - logger.error("FETCHED-CLASS {} IN {} does NOT EXIST", className, classLoader); + logger.error("class {} fetched in {} does not exist", className, classLoader, e); } return null; -- cgit 1.2.3-korg