This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new e5a7bc9 SpotBugs. Remove unnecessary code. e5a7bc9 is described below commit e5a7bc93200f27b96fa31cc3e2f0476bf52d16ad Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Jul 2 20:57:01 2019 +0100 SpotBugs. Remove unnecessary code. --- test/org/apache/catalina/startup/TestTomcat.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/org/apache/catalina/startup/TestTomcat.java b/test/org/apache/catalina/startup/TestTomcat.java index 4c2330b..f4d89b1 100644 --- a/test/org/apache/catalina/startup/TestTomcat.java +++ b/test/org/apache/catalina/startup/TestTomcat.java @@ -31,7 +31,6 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; -import javax.servlet.http.HttpSession; import org.junit.Assert; import org.junit.Test; @@ -78,8 +77,7 @@ public class TestTomcat extends TomcatBaseTest { @Override public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { - HttpSession s = req.getSession(true); - s.getId(); + req.getSession(true); res.getWriter().write("Hello world"); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org