diff options
author | Thugutla sailakshmi <tsaila10@in.ibm.com> | 2019-11-08 18:01:43 +0530 |
---|---|---|
committer | Jonathan Gathman <jonathan.gathman@att.com> | 2019-12-02 23:45:10 +0000 |
commit | 3a5ca081c75bfeaecae40684a2cf89126fb99164 (patch) | |
tree | f95da2190fa4bb7aea44f780040d4d885cddd41d /misc/env/src/main | |
parent | 333a035c095351e496328ec72c82beb65507e71b (diff) |
JAXBData.java-Extract the assignment out of expression
Issue-ID: AAF-876
Change-Id: I431bb79d12ad49a6d84c000f30c0532a710c42cf
Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'misc/env/src/main')
-rw-r--r-- | misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java b/misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java index 6d83aca4..a5f10e0f 100644 --- a/misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java +++ b/misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java @@ -117,7 +117,8 @@ public final class JAXBData<T> implements Data<T>{ if (dataAsString!=null) {
return dataAsString;
} else {
- return dataAsString = stringifier.stringify(env, dataAsObject);
+ dataAsString = stringifier.stringify(env, dataAsObject);
+ return dataAsString;
}
}
@@ -134,7 +135,8 @@ public final class JAXBData<T> implements Data<T>{ if (dataAsString!=null) {
return dataAsString;
} else {
- return dataAsString = stringifier.stringify(creatingEnv, dataAsObject,options);
+ dataAsString = stringifier.stringify(creatingEnv, dataAsObject,options);
+ return dataAsString;
}
}
@@ -243,7 +245,8 @@ public final class JAXBData<T> implements Data<T>{ return dataAsString;
} else {
try {
- return dataAsString = stringifier.stringify(creatingEnv, dataAsObject);
+ dataAsString = stringifier.stringify(creatingEnv, dataAsObject);
+ return dataAsString;
} catch (APIException e) {
return "ERROR - Can't Stringify from Object " + e.getLocalizedMessage();
}
|