diff options
author | Seshu Kumar M <seshu.kumar.m@huawei.com> | 2017-09-28 12:51:54 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-28 12:51:54 +0000 |
commit | 50c4e9a3e8cbf817a2a5b001e103175443ab5f31 (patch) | |
tree | 19626cdd1bab211a57f968c649d74683e2ccd270 /mso-api-handlers | |
parent | b228dc1116a6ccddb7768633a472eb4eea622240 (diff) | |
parent | 78a3b140d29c1d96a353899fa7d8a70360e5a2b7 (diff) |
Merge "Removed useless assignment to local variables"
Diffstat (limited to 'mso-api-handlers')
2 files changed, 5 insertions, 2 deletions
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); diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java index 911808388f..91bf2df48c 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/Messages.java @@ -46,4 +46,7 @@ public class Messages { errors.put(ErrorNumbers.NO_COMMUNICATION_TO_CATALOG_DB, "Could not communicate with MSO_CATALOG DB %s"); errors.put(ErrorNumbers.ERROR_FROM_CATALOG_DB, "Received error from MSO_CATALOG DB %s"); } + + private Messages(){ + } } |