You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/04/02 15:53:16 UTC

[commons-fileupload] 02/02: Fix method name

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

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

commit 3ee89c581234c1627fe85db9ba24c95ed938b088
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Apr 2 11:53:09 2023 -0400

    Fix method name
---
 src/main/java/org/apache/commons/fileupload2/MultipartStream.java | 6 +++---
 1 file 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 61f8fab..fbb2f60 100644
--- a/src/main/java/org/apache/commons/fileupload2/MultipartStream.java
+++ b/src/main/java/org/apache/commons/fileupload2/MultipartStream.java
@@ -502,7 +502,7 @@ public class MultipartStream {
      *
      * @return {@code true} if {@code count} first bytes in arrays {@code a} and {@code b} are equal.
      */
-    public static boolean arrayequals(final byte[] a, final byte[] b, final int count) {
+    public static boolean arrayEquals(final byte[] a, final byte[] b, final int count) {
         for (int i = 0; i < count; i++) {
             if (a[i] != b[i]) {
                 return false;
@@ -776,9 +776,9 @@ public class MultipartStream {
             }
 
             marker[1] = readByte();
-            if (arrayequals(marker, STREAM_TERMINATOR, 2)) {
+            if (arrayEquals(marker, STREAM_TERMINATOR, 2)) {
                 nextChunk = false;
-            } else if (arrayequals(marker, FIELD_SEPARATOR, 2)) {
+            } else if (arrayEquals(marker, FIELD_SEPARATOR, 2)) {
                 nextChunk = true;
             } else {
                 throw new MalformedStreamException("Unexpected characters follow a boundary");