summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormanisha07 <cmanis10@in.ibm.com>2019-11-08 15:59:22 +0530
committerJonathan Gathman <jonathan.gathman@att.com>2019-12-05 15:08:33 +0000
commit11495db96cc58f8b14ec704cfde0af72aad2a6af (patch)
tree68bed889921b7074abc5e43aa0cac33ce264c887
parent333a035c095351e496328ec72c82beb65507e71b (diff)
Examples.java
Issue-ID: AAF-1031 Change-Id: I8b55fdca2f118c659d7911c9d16d9218a1d9c37a Signed-off-by: manisha07 <cmanis10@in.ibm.com>
-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;
}