tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1460309 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/tomcat/util/http/Parameters.java
Date Sun, 24 Mar 2013 10:32:27 GMT
Author: kkolinko
Date: Sun Mar 24 10:32:27 2013
New Revision: 1460309

URL: http://svn.apache.org/r1460309
Log:
Merged revision 1460234 from tomcat/trunk:
No need to create a new String if data length is 0.

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1460234

Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java?rev=1460309&r1=1460308&r2=1460309&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/http/Parameters.java Sun Mar 24 10:32:27
2013
@@ -332,7 +332,7 @@ public final class Parameters {
                 UserDataHelper.Mode logMode = userDataLog.getNextMode();
                 if (logMode != null) {
                     String extract;
-                    if (valueEnd >= nameStart) {
+                    if (valueEnd > nameStart) {
                         extract = new String(bytes, nameStart, valueEnd
                                 - nameStart, DEFAULT_CHARSET);
                     } else {



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


Mime
View raw message