Fix sonar issues
[dcaegen2/platform.git] / mod / bpgenerator / onap / src / main / java / org / onap / blueprintgenerator / service / common / ExternalCertificateParametersFactoryService.java
index 226a319..1e3386c 100644 (file)
@@ -4,7 +4,7 @@
  *  *  org.onap.dcae
  *  *  ================================================================================
  *  *  Copyright (c) 2020  AT&T Intellectual Property. All rights reserved.
- *  *  Copyright (c) 2020  Nokia. All rights reserved.
+ *  *  Copyright (c) 2020-2021  Nokia. All rights reserved.
  *  *  ================================================================================
  *  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  *  you may not use this file except in compliance with the License.
@@ -64,16 +64,16 @@ public class ExternalCertificateParametersFactoryService
      *
      * @return
      */
-    public Map<String, LinkedHashMap<String, Object>> createInputList() {
-        Map<String, LinkedHashMap<String, Object>> retInputs = new LinkedHashMap<>();
+    public Map<String, Map<String, Object>> createInputList() {
+        Map<String, Map<String, Object>> retInputs = new LinkedHashMap<>();
 
-        LinkedHashMap<String, Object> commonNameInputMap =
+        Map<String, Object> commonNameInputMap =
             blueprintHelperService.createStringInput(
                 "Common name which should be present in certificate.",
                 Constants.DEFAULT_COMMON_NAME);
         retInputs.put(addPrefix(Constants.COMMON_NAME_FIELD), commonNameInputMap);
 
-        LinkedHashMap<String, Object> sansInputMap =
+        Map<String, Object> sansInputMap =
             blueprintHelperService.createStringInput(
                 "\"List of Subject Alternative Names (SANs) which should be present in certificate. "
                     + "Delimiter - , Should contain a common_name value and other FQDNs under which the given "