diff options
author | Pooja03 <PM00501616@techmahindra.com> | 2018-01-29 17:46:34 +0530 |
---|---|---|
committer | Pooja03 <PM00501616@techmahindra.com> | 2018-01-29 17:46:34 +0530 |
commit | 9cbcdfe60e0020c748a61be243d3d241b0ca543f (patch) | |
tree | ec64202b104c36b3bff0e1800fd797ede5f635f2 /src | |
parent | 8c3fa86a00205f9f2fac90b0580b70d78c4dd59d (diff) |
Sonar Major fix
Remove the unused context local variable
Sonar Link:https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=MAJOR
Location:Bootstrap.java:L46
Change-Id: I3c59b7bc590fb9ba5e894e0dc584fc9d0026e209
Issue-ID: DCAEGEN2-285
Signed-off-by: Pooja03 <PM00501616@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/swagger/api/Bootstrap.java | 3 |
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); |