summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2019-12-05 17:19:41 +0000
committerGerrit Code Review <gerrit@onap.org>2019-12-05 17:19:41 +0000
commiteb706feab37842e2decc5ad9e634fb5689f85531 (patch)
treee65093165d2488e143df04dcb46efc2de0ff1e24
parent25f38b585ec2556c92f60a42322f85168dc8f686 (diff)
parent11495db96cc58f8b14ec704cfde0af72aad2a6af (diff)
Merge "Examples.java"
-rw-r--r--cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
index 308fcc80..07e5e285 100644
--- a/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
+++ b/cadi/aaf/src/main/java/org/onap/aaf/cadi/aaf/client/Examples.java
@@ -58,7 +58,7 @@ import aaf.v2_0.Users;
import aaf.v2_0.Users.User;
public class Examples {
- public static <C> String print(RosettaEnv env, String nameOrContentType, boolean optional) throws APIException, SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
+ public static <C> String print(RosettaEnv env, String nameOrContentType, boolean optional) throws APIException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// Discover ClassName
String className = null;
String version = null;
@@ -134,7 +134,7 @@ public class Examples {
@SuppressWarnings("unchecked")
String rv = df.newData().load((C)data).out(type).asString();
-// Object obj = df.newData().in(type).load(rv).asObject();
+
return rv;
}
@@ -146,7 +146,6 @@ public class Examples {
req.setStart(Chrono.timeStamp(gc));
gc.add(GregorianCalendar.MONTH, 6);
req.setEnd(Chrono.timeStamp(gc));
-// req.setForce("false");
}
@@ -276,7 +275,9 @@ public class Examples {
UserRoleRequest urr = new UserRoleRequest();
urr.setRole("org.osaaf.myns.myRole");
urr.setUser("ab1234@people.osaaf.org");
- if (optional) setOptional(urr);
+ if (optional) {
+ setOptional(urr);
+ }
return urr;
}