Skip to content
Permalink
Browse files
Minor Improvement:
* Add final
* Remove Unused import
* Remove Unnecessary interface modifier
  • Loading branch information
arturobernalg committed Dec 30, 2020
1 parent 8939953 commit 386323c05f8321f37716f3e0667f24ff91621f47
Showing 3 changed files with 3 additions and 8 deletions.
@@ -40,7 +40,7 @@ public interface FileItemStream extends FileItemHeadersSupport {
* {@link java.util.Iterator#hasNext()} has been invoked on the
* iterator, which created the {@link FileItemStream}.
*/
public static class ItemSkippedException extends IOException {
class ItemSkippedException extends IOException {

/**
* The exceptions serial version UID, which is being used
@@ -149,7 +149,7 @@ protected void init(final FileUploadBase fileUploadBase, final RequestContext pR
: contentLengthInt;
// CHECKSTYLE:ON

InputStream input; // N.B. this is eventually closed in MultipartStream processing
final InputStream input; // N.B. this is eventually closed in MultipartStream processing
if (sizeMax >= 0) {
if (requestSize != -1 && requestSize > sizeMax) {
throw new SizeLimitExceededException(
@@ -218,7 +218,7 @@ private boolean findNextItem() throws FileUploadException, IOException {
}
final MultipartStream multi = getMultiPartStream();
for (;;) {
boolean nextPart;
final boolean nextPart;
if (skipPreamble) {
nextPart = multi.skipPreamble();
} else {
@@ -29,11 +29,6 @@
import java.util.Arrays;
import org.apache.commons.io.FileUtils;

import org.apache.commons.fileupload2.DefaultFileItem;
import org.apache.commons.fileupload2.DefaultFileItemFactory;
import org.apache.commons.fileupload2.FileItem;
import org.apache.commons.fileupload2.FileItemFactory;
import org.apache.commons.io.FileUtils;

import org.junit.jupiter.api.Test;

0 comments on commit 386323c

Please sign in to comment.