tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1766110 - /tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
Date Fri, 21 Oct 2016 19:13:35 GMT
Author: markt
Date: Fri Oct 21 19:13:35 2016
New Revision: 1766110

URL: http://svn.apache.org/viewvc?rev=1766110&view=rev
Log:
Fix IDE nag

Modified:
    tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java

Modified: tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java?rev=1766110&r1=1766109&r2=1766110&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java (original)
+++ tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java Fri Oct 21 19:13:35
2016
@@ -852,7 +852,7 @@ public class TestNonBlockingAPI extends
         @Override
         protected void doGet(HttpServletRequest request, HttpServletResponse response)
                 throws ServletException, IOException {
-            boolean notify = Boolean.valueOf(request.getParameter("notify"));
+            boolean notify = Boolean.parseBoolean(request.getParameter("notify"));
             AsyncContext ctx = request.startAsync();
             ctx.setTimeout(1000);
             if (!notify) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message