From 1cb6e06bc723b5eade162f1924b8b91da65ad4a3 Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Fri, 30 Nov 2018 16:53:01 +0530 Subject: fixed sonar issues in WebConfig.java to increase code coverage Issue-ID: CCSDK-525 Change-Id: I406781cbdfa34b29d293376d74ab7eb4295552a2 Signed-off-by: Sandeep J --- .../main/java/org/onap/ccsdk/apps/blueprintsprocessor/WebConfig.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/WebConfig.java b/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/WebConfig.java index f1b8f9d6f..3742f5604 100644 --- a/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/WebConfig.java +++ b/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/WebConfig.java @@ -1,5 +1,6 @@ /* * Copyright © 2017-2018 AT&T Intellectual Property. + * Modifications Copyright © 2018 IBM. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,10 +17,7 @@ package org.onap.ccsdk.apps.blueprintsprocessor; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Configuration; -import org.springframework.format.FormatterRegistry; import org.springframework.web.reactive.config.*; /** @@ -29,6 +27,7 @@ import org.springframework.web.reactive.config.*; */ @Configuration public class WebConfig extends WebFluxConfigurationSupport { + @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("swagger-ui.html") .addResourceLocations("classpath:/META-INF/resources/"); -- cgit 1.2.3-korg