Remove warnings in policy-api code 77/128777/2
authorliamfallon <liam.fallon@est.tech>
Thu, 21 Apr 2022 16:11:43 +0000 (17:11 +0100)
committerliamfallon <liam.fallon@est.tech>
Thu, 21 Apr 2022 16:35:10 +0000 (17:35 +0100)
Dependency versions are handled from managed dependencies in
policy/parent

Issue-ID: POLICY-4070
Change-Id: If4d86742e769b879d59bc839e44d63a355d20602
Signed-off-by: liamfallon <liam.fallon@est.tech>
main/pom.xml
main/src/main/java/org/onap/policy/api/main/rest/NodeTemplateController.java
main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
main/src/test/java/org/onap/policy/api/main/service/TestToscaServiceTemplateForNodeTemplate.java

index 4e787cf..0ffe56c 100644 (file)
@@ -98,7 +98,6 @@
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-data-jpa</artifactId>
-            <version>${version.springboot}</version>
         </dependency>
         <dependency>
             <groupId>io.micrometer</groupId>
         <dependency>
             <groupId>io.springfox</groupId>
             <artifactId>springfox-swagger-ui</artifactId>
-            <version>${version.springfox}</version>
             <scope>runtime</scope>
         </dependency>
     </dependencies>
index 19b3798..6010f8e 100644 (file)
@@ -47,8 +47,6 @@ import org.onap.policy.models.base.PfModelException;
 import org.onap.policy.models.base.PfModelRuntimeException;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaNodeTemplate;
 import org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.DeleteMapping;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -81,8 +79,6 @@ import org.springframework.web.bind.annotation.RestController;
 @RequiredArgsConstructor
 public class NodeTemplateController extends CommonRestController {
 
-    private static final Logger LOGGER = LoggerFactory.getLogger(NodeTemplateController.class);
-
     private final ToscaServiceTemplateService toscaServiceTemplateService;
 
     /**
index bf35d27..4f4dd6b 100644 (file)
@@ -45,7 +45,6 @@ import org.onap.policy.api.main.rest.provider.statistics.StatisticsReport;
 import org.onap.policy.api.main.rest.utils.CommonTestRestController;
 import org.onap.policy.common.endpoints.report.HealthCheckReport;
 import org.onap.policy.common.utils.coder.StandardCoder;
-import org.onap.policy.common.utils.coder.StandardYamlCoder;
 import org.onap.policy.common.utils.network.NetworkUtil;
 import org.onap.policy.common.utils.resources.ResourceUtils;
 import org.onap.policy.common.utils.resources.TextFileUtils;
@@ -155,7 +154,6 @@ public class TestApiRestServer extends CommonTestRestController {
     // @formatter:on
 
     private static final StandardCoder standardCoder = new StandardCoder();
-    private static StandardYamlCoder standardYamlCoder = new StandardYamlCoder();
     private static SelfSignedKeyStore keystore;
 
     @LocalServerPort
index 6c6f016..8f8fc46 100644 (file)
@@ -117,7 +117,7 @@ public class TestToscaServiceTemplateForNodeTemplate extends TestCommonToscaServ
 
         assertThatThrownBy(() -> {
             toscaServiceTemplateService.updateToscaNodeTemplates(null);
-        }).hasMessageMatching("^serviceTemplate is marked non-null but is null$");
+        }).hasMessageMatching("^serviceTemplate is marked .*on.*ull but is null$");
 
         JpaToscaNodeTemplate jpaNodeTemplate = new JpaToscaNodeTemplate();
         PfConceptKey key = new PfConceptKey("apexMetadata_grpc", "1.0.0");