summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-03-11 10:15:19 -0400
committerJim Hahn <jrh3@att.com>2019-03-11 10:23:44 -0400
commit33ef186e1e34b74cea33a77a043c0c8100d5c467 (patch)
tree1ce237ed462abd2603c7a638d3e3bc97ab1968c8 /utils
parent887f698db8511138c7aa3815809f1a96225116fe (diff)
Address sonar issues in utils
Fixed issues in BeanConfigurator. Fixed issues in NetworkUtil associated with newly added trust manager. Change-Id: I0777ff85131d22c92c0ede06335a5b2839a1c482 Issue-ID: POLICY-1519 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/network/NetworkUtil.java8
-rw-r--r--utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java3
2 files changed, 7 insertions, 4 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 aca34bbe..3976c7a2 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
@@ -60,11 +60,15 @@ public class NetworkUtil {
@Override
public void checkClientTrusted(final java.security.cert.X509Certificate[] certs,
- final String authType) {}
+ final String authType) {
+ // always trust
+ }
@Override
public void checkServerTrusted(final java.security.cert.X509Certificate[] certs,
- final String authType) {}
+ final String authType) {
+ // always trust
+ }
}
};
// @formatter:on
diff --git a/utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java b/utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java
index 9d02819a..2ef91911 100644
--- a/utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java
+++ b/utils/src/main/java/org/onap/policy/common/utils/properties/BeanConfigurator.java
@@ -526,9 +526,8 @@ public class BeanConfigurator {
* @param methodName name of the method to return
* @return the method to be used to get the field's value
* @throws NoSuchMethodException if the method does not exist
- * @throws SecurityException if the method cannot be accessed
*/
- protected Method getGetter(Field field, String methodName) throws NoSuchMethodException, SecurityException {
+ protected Method getGetter(Field field, String methodName) throws NoSuchMethodException {
return field.getDeclaringClass().getMethod(methodName);
}