This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git


The following commit(s) were added to refs/heads/master by this push:
     new 190a635  Fix typos. No functional change.
190a635 is described below

commit 190a63505aa28c33d540f2bfd1ab778aa89e2a16
Author: Mark Thomas <[email protected]>
AuthorDate: Fri May 3 17:24:06 2019 +0100

    Fix typos. No functional change.
---
 src/main/java/org/apache/commons/fileupload2/MultipartStream.java   | 2 +-
 src/main/java/org/apache/commons/fileupload2/ParameterParser.java   | 2 +-
 src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/fileupload2/MultipartStream.java 
b/src/main/java/org/apache/commons/fileupload2/MultipartStream.java
index 2127ed2..77f1f34 100644
--- a/src/main/java/org/apache/commons/fileupload2/MultipartStream.java
+++ b/src/main/java/org/apache/commons/fileupload2/MultipartStream.java
@@ -655,7 +655,7 @@ public class MultipartStream {
      * @throws IOException if an i/o error occurs.
      */
     public boolean skipPreamble() throws IOException {
-        // First delimiter may be not preceeded with a CRLF.
+        // First delimiter may be not preceded with a CRLF.
         System.arraycopy(boundary, 2, boundary, 0, boundary.length - 2);
         boundaryLength = boundary.length - 2;
         computeBoundaryTable();
diff --git a/src/main/java/org/apache/commons/fileupload2/ParameterParser.java 
b/src/main/java/org/apache/commons/fileupload2/ParameterParser.java
index f310dd2..314519d 100644
--- a/src/main/java/org/apache/commons/fileupload2/ParameterParser.java
+++ b/src/main/java/org/apache/commons/fileupload2/ParameterParser.java
@@ -119,7 +119,7 @@ public class ParameterParser {
     /**
      * Tests if the given character is present in the array of characters.
      *
-     * @param ch the character to test for presense in the array of characters
+     * @param ch the character to test for presence in the array of characters
      * @param charray the array of characters to test against
      *
      * @return {@code true} if the character is present in the array of
diff --git 
a/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java 
b/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
index d5c538d..83587d1 100644
--- a/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
+++ b/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java
@@ -403,7 +403,7 @@ public class DiskFileItem
                  * desired file.
                  */
                 if (file.exists()) {
-                       file.delete();
+                    file.delete();
                 }
                 FileUtils.moveFile(outputFile, file);
             } else {

Reply via email to