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/05 23:46:59 UTC

[commons-fileupload] 05/06: Use final

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 707bbc9b474cbf32d98175cbd092a8baaa5932c4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Apr 5 19:42:31 2023 -0400

    Use final
---
 src/test/java/org/apache/commons/fileupload2/SizesTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/fileupload2/SizesTest.java b/src/test/java/org/apache/commons/fileupload2/SizesTest.java
index 5fe6b31..c14afda 100644
--- a/src/test/java/org/apache/commons/fileupload2/SizesTest.java
+++ b/src/test/java/org/apache/commons/fileupload2/SizesTest.java
@@ -254,7 +254,7 @@ public class SizesTest {
         final FileItemIterator it = upload.getItemIterator(req);
         assertTrue(it.hasNext());
 
-        FileItemStream item = it.next();
+        final FileItemStream item = it.next();
         assertFalse(item.isFormField());
         assertEquals("file1", item.getFieldName());
         assertEquals("foo1.tab", item.getName());
@@ -264,7 +264,7 @@ public class SizesTest {
                     final InputStream stream = item.openStream()) {
                 IOUtils.copy(stream, baos);
             }
-            
+
         }
 
         // the second item is over the size max, thus we expect an error