From 3a5ca081c75bfeaecae40684a2cf89126fb99164 Mon Sep 17 00:00:00 2001 From: Thugutla sailakshmi Date: Fri, 8 Nov 2019 18:01:43 +0530 Subject: JAXBData.java-Extract the assignment out of expression Issue-ID: AAF-876 Change-Id: I431bb79d12ad49a6d84c000f30c0532a710c42cf Signed-off-by: Thugutla sailakshmi --- misc/env/src/main/java/org/onap/aaf/misc/env/jaxb/JAXBData.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'misc/env') 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 implements Data{ 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 implements Data{ 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 implements Data{ 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(); } -- cgit 1.2.3-korg