From 78a3b140d29c1d96a353899fa7d8a70360e5a2b7 Mon Sep 17 00:00:00 2001 From: rama-huawei Date: Mon, 25 Sep 2017 18:57:57 +0530 Subject: Removed useless assignment to local variables Issue-Id:SO-118 Change-Id: I29ec088aa52073f4e9df5503ede9f306c72e41d0 Signed-off-by: rama-huawei --- .../main/java/org/openecomp/mso/apihandler/common/XMLValidator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-common/src/main/java/org/openecomp') diff --git a/mso-api-handlers/mso-api-handler-common/src/main/java/org/openecomp/mso/apihandler/common/XMLValidator.java b/mso-api-handlers/mso-api-handler-common/src/main/java/org/openecomp/mso/apihandler/common/XMLValidator.java index 353246f576..b498259eed 100644 --- a/mso-api-handlers/mso-api-handler-common/src/main/java/org/openecomp/mso/apihandler/common/XMLValidator.java +++ b/mso-api-handlers/mso-api-handler-common/src/main/java/org/openecomp/mso/apihandler/common/XMLValidator.java @@ -65,7 +65,7 @@ public class XMLValidator { stringXsd = IOUtils.toString (xsdStream); factory = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI); - factory.setResourceResolver ((new PathResourceResolver (XSDS_PATH))); + factory.setResourceResolver (new PathResourceResolver (XSDS_PATH)); factory.setFeature (XMLConstants.FEATURE_SECURE_PROCESSING, true); String quotedXsd = stringXsd.replaceAll (""", "\""); @@ -90,7 +90,7 @@ public class XMLValidator { } catch (IOException | SAXException e) { msoLogger.debug ("Exception: ", e); - return ("ErrorDetails: " + e.getMessage ()); + return "ErrorDetails: " + e.getMessage (); } catch (Exception e) { msoLogger.error (MessageEnum.APIH_CANNOT_READ_SCHEMA, "", "", MsoLogger.ErrorCode.SchemaError, "APIH cannot read schema file", e); -- cgit 1.2.3-korg