summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-01-29 18:27:00 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-29 18:27:00 +0000
commitab7eaadac99e9e55daccb39b9f27a9cc69760b96 (patch)
treee0afa640e567ad6ea0dfbddb0721c3ef805b99b1 /src
parent7d1fd185bb6782e686c9e90b053437943339b2c4 (diff)
parent9cbcdfe60e0020c748a61be243d3d241b0ca543f (diff)
Merge "Sonar Major fix"
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/swagger/api/Bootstrap.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/swagger/api/Bootstrap.java b/src/main/java/io/swagger/api/Bootstrap.java
index 2d71ecb..24f4583 100644
--- a/src/main/java/io/swagger/api/Bootstrap.java
+++ b/src/main/java/io/swagger/api/Bootstrap.java
@@ -26,7 +26,6 @@ import io.swagger.models.*;
import io.swagger.models.auth.*;
import javax.servlet.http.HttpServlet;
-import javax.servlet.ServletContext;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
@@ -43,7 +42,7 @@ public class Bootstrap extends HttpServlet {
.name("")
.url(""));
- ServletContext context = config.getServletContext();
+
Swagger swagger = new Swagger().info(info);
new SwaggerContextService().withServletConfig(config).updateSwagger(swagger);