commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1565249 - /commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java
Date Thu, 06 Feb 2014 13:45:34 GMT
Author: ggregory
Date: Thu Feb  6 13:45:33 2014
New Revision: 1565249

URL: http://svn.apache.org/r1565249
Log:
Remove unnecessary parentheses.

Modified:
    commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java

Modified: commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java?rev=1565249&r1=1565248&r2=1565249&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java
(original)
+++ commons/proper/fileupload/trunk/src/main/java/org/apache/commons/fileupload/MultipartStream.java
Thu Feb  6 13:45:33 2014
@@ -702,9 +702,9 @@ public class MultipartStream {
         int first;
         int match = 0;
         int maxpos = tail - boundaryLength;
-        for (first = head; (first <= maxpos) && (match != boundaryLength); first++)
{
+        for (first = head; first <= maxpos && match != boundaryLength; first++)
{
             first = findByte(boundary[0], first);
-            if (first == -1 || (first > maxpos)) {
+            if (first == -1 || first > maxpos) {
                 return -1;
             }
             for (match = 1; match < boundaryLength; match++) {



Mime
View raw message