String versionInfo = "";
try {
versionInfo = IOUtils.toString(this.getClass().getClassLoader().getResourceAsStream(OnapCommandConstants.VERSION_INFO));
- } catch (IOException e) {
- //Never occurs // NOSONAR
+ } catch (IOException e) { // NOSONAR
+ //Never occurs
}
versionInfo = versionInfo.replaceAll(OnapCommandConstants.VERSION_INFO_PLACE_HOLDER_ENB_PRD_VER, configuredProductVersion);
impBuildDate = attributes.getValue("Build-Time");
}
- catch (IOException e)
+ catch (IOException e) // NOSONAR
{
//Ignore it as it will never occur
}
public static final String APPLICATION_JSON = "application/json";
public static final String DEFAULT_PARAMETER_HTTP_FILE_NAME = "default_input_parameters_http.yaml";
public static final String DEAFULT_PARAMETER_USERNAME = "host-username";
- public static final String DEAFULT_PARAMETER_PASSWORD = "host-password";
+ public static final String DEAFULT_PARAMETER_PASSWORD = "host-password"; // NOSONAR
public static final String DEAFULT_PARAMETER_HOST_URL = "host-url";
public static final String DEFAULT_PARAMETER_NO_AUTH = "no-auth";
public static final String HTTP_SCHEMA_PROFILE = "http";
forCmd.getInfo().getService() + "-" +
forCmd.getService().getAuthType() + "-" + authAction,
forCmd.getInfo().getProduct());
- } catch (OnapCommandNotFound e) {
+ } catch (OnapCommandNotFound e) { // NOSONAR
auth = OnapCommandRegistrar.getRegistrar().get(
forCmd.getService().getAuthType() + "-" + authAction,
forCmd.getInfo().getProduct());
String key = entry.getKey();
try {
resultsProcessed.put(key, OnapCommandHttpUtils.replaceLineFromOutputResults(resultMap.get(key), resultHttp));
- } catch(OnapCommandResultEmpty e) {
- // pass // NOSONAR
+ } catch(OnapCommandResultEmpty e) { // NOSONAR
+ // pass
}
}
try {
// JSONArray or String
value = JsonPath.read(resultHttp.getBody(), jsonPath);
- } catch (PathNotFoundException e1) {
+ } catch (PathNotFoundException e1) { // NOSONAR
//set to blank for those entries which are missing from the output json
value = "";
} catch (Exception e) {