summaryrefslogtreecommitdiffstats
path: root/model/utilities/src
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2018-12-19 17:48:47 +0000
committerliamfallon <liam.fallon@est.tech>2018-12-19 17:48:53 +0000
commit1dff5ebe27cbe79de8f9d798e256d41ecccdaa8c (patch)
tree7813a9eba36e95ecfd9e9784348f2432243d32ad /model/utilities/src
parentb70b381538d2c6fca65530538b36c8f8fdebd104 (diff)
Add example policy for HTTPS
Added an example of how to configure HTTPS for an Apex policy. Issue-ID: POLICY-1222 Change-Id: Iea8a8accac32f6d25c64a8324e202ad5e6221c7a Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'model/utilities/src')
-rw-r--r--model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java
index 7070daad3..4c8bd1384 100644
--- a/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java
+++ b/model/utilities/src/main/java/org/onap/policy/apex/model/utilities/typeutils/ClassBuilder.java
@@ -39,6 +39,7 @@ import sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl;
* <a href="https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083">
* https://github.com/KetothXupack/stackoverflow-answers/tree/master/q39401083</a><br>
*/
+@SuppressWarnings("restriction")
public class ClassBuilder {
// Logger for this class
private static final XLogger LOGGER = XLoggerFactory.getXLogger(ClassBuilder.class);
@@ -69,8 +70,9 @@ public class ClassBuilder {
return new ClassBuilder(Class.forName("java.lang." + className));
} catch (Exception classFindException) {
LOGGER.warn("class not found", classFindException);
- throw new IllegalArgumentException("Class '" + className
- + "' not found. Also looked for a class called 'java.lang." + className + "'", e);
+ throw new IllegalArgumentException(
+ "Class '" + className + "' not found. Also looked for a class called 'java.lang." + className + "'",
+ e);
}
}
}