This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
commit 9eff2e6a802c43fb727567a8fd0384821fc3b0cb Author: Gary Gregory <[email protected]> AuthorDate: Sun Jul 26 14:48:00 2026 -0400 Use final --- .../commons/fileupload2/core/DiskFileItemSerializeTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/DiskFileItemSerializeTest.java b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/DiskFileItemSerializeTest.java index 19caa0ff..05c74160 100644 --- a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/DiskFileItemSerializeTest.java +++ b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/DiskFileItemSerializeTest.java @@ -90,14 +90,14 @@ class DiskFileItemSerializeTest { /** * Create a FileItem with the specfied content bytes. */ - private DiskFileItem createFileItem(final byte[] contentBytes, int threshold) throws IOException { + private DiskFileItem createFileItem(final byte[] contentBytes, final int threshold) throws IOException { return createFileItem(contentBytes, REPOSITORY, threshold); } /** * Create a FileItem with the specfied content bytes and repository. */ - private DiskFileItem createFileItem(final byte[] contentBytes, final Path repository, int threshold) throws IOException { + private DiskFileItem createFileItem(final byte[] contentBytes, final Path repository, final int threshold) throws IOException { // @formatter:off final FileItemFactory<DiskFileItem> factory = DiskFileItemFactory.builder() .setBufferSize(THRESHOLD) @@ -210,14 +210,14 @@ class DiskFileItemSerializeTest { /** * Helper method to test creation of a field. */ - private void testInMemoryObject(final byte[] testFieldValueBytes, int threshold) throws IOException { + private void testInMemoryObject(final byte[] testFieldValueBytes, final int threshold) throws IOException { testInMemoryObject(testFieldValueBytes, REPOSITORY, threshold); } /** * Helper method to test creation of a field when a repository is used. */ - private void testInMemoryObject(final byte[] testFieldValueBytes, final Path repository, int threshold) throws IOException { + private void testInMemoryObject(final byte[] testFieldValueBytes, final Path repository, final int threshold) throws IOException { final var item = createFileItem(testFieldValueBytes, repository, threshold); // Check state is as expectedthreshold >= testFieldValueBytes.length, item.isInMemory(), "Initial: in memory");
