From 10a1b8662ecfd2e1ed071501a4dfd9c2270256dd Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Fri, 30 Nov 2018 16:41:01 +0530 Subject: fixed sonar issues in SwaggerConfig.java to increase code coverage Issue-ID: CCSDK-525 Change-Id: Id97df31a756d69760b91955e22d63f52812878d9 Signed-off-by: Sandeep J --- .../java/org/onap/ccsdk/apps/blueprintsprocessor/SwaggerConfig.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ms/blueprintsprocessor/application/src') diff --git a/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/SwaggerConfig.java b/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/SwaggerConfig.java index 0b5f6227..fc1007f7 100644 --- a/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/SwaggerConfig.java +++ b/ms/blueprintsprocessor/application/src/main/java/org/onap/ccsdk/apps/blueprintsprocessor/SwaggerConfig.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. @@ -19,9 +20,7 @@ package org.onap.ccsdk.apps.blueprintsprocessor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; -import org.springframework.web.bind.annotation.RequestMapping; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandlerSelectors; import springfox.documentation.service.ApiInfo; @@ -44,7 +43,7 @@ import java.util.Set; @EnableSwagger2 public class SwaggerConfig { private static final Set DEFAULT_PRODUCES_AND_CONSUMES = - new HashSet(Arrays.asList("application/json", + new HashSet<>(Arrays.asList("application/json", "application/xml")); private static Logger log = LoggerFactory.getLogger(SwaggerConfig.class); -- cgit 1.2.3-korg