You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2016/02/14 21:46:00 UTC

svn commit: r1730399 - /tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java

Author: markt
Date: Sun Feb 14 20:46:00 2016
New Revision: 1730399

URL: http://svn.apache.org/viewvc?rev=1730399&view=rev
Log:
Remove unnecessary optimisation.
With latest Java 8 this is unnecessary. The code runs as quickly (possibly margianlly faster) without it.

Modified:
    tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java

Modified: tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java?rev=1730399&r1=1730398&r2=1730399&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http11/Http11Processor.java Sun Feb 14 20:46:00 2016
@@ -1265,13 +1265,6 @@ public class Http11Processor extends Abs
             }
         }
 
-        MessageBytes methodMB = request.method();
-        if (methodMB.equals(Constants.GET)) {
-            methodMB.setString(Constants.GET);
-        } else if (methodMB.equals(Constants.POST)) {
-            methodMB.setString(Constants.POST);
-        }
-
         MimeHeaders headers = request.getMimeHeaders();
 
         // Check connection header



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