Remove redundant modifiers like public on interface members.
diff --git a/src/main/java/org/apache/commons/fileupload2/FileItemIterator.java b/src/main/java/org/apache/commons/fileupload2/FileItemIterator.java
index 462f7dc..9413805 100644
--- a/src/main/java/org/apache/commons/fileupload2/FileItemIterator.java
+++ b/src/main/java/org/apache/commons/fileupload2/FileItemIterator.java
@@ -34,7 +34,7 @@
* request specific value by invoking {@link #setFileSizeMax(long)} on this object.
* @return The maximum size of a single, uploaded file. The value -1 indicates "unlimited".
*/
- public long getFileSizeMax();
+ long getFileSizeMax();
/** Sets the maximum size of a single file. An {@link FileSizeLimitExceededException}
* will be thrown, if there is an uploaded file, which is exceeding this value.
@@ -45,7 +45,7 @@
* <em>Note:</em>Changing this value doesn't affect files, that have already been uploaded.
* @param pFileSizeMax The maximum size of a single, uploaded file. The value -1 indicates "unlimited".
*/
- public void setFileSizeMax(long pFileSizeMax);
+ void setFileSizeMax(long pFileSizeMax);
/** Returns the maximum size of the complete HTTP request. A {@link SizeLimitExceededException}
* will be thrown, if the HTTP request will exceed this value.
@@ -54,7 +54,7 @@
* request specific value by invoking {@link #setSizeMax(long)} on this object.
* @return The maximum size of the complete HTTP request. The value -1 indicates "unlimited".
*/
- public long getSizeMax();
+ long getSizeMax();
/** Returns the maximum size of the complete HTTP request. A {@link SizeLimitExceededException}
* will be thrown, if the HTTP request will exceed this value.
@@ -66,7 +66,7 @@
* yet been invoked.
* @param pSizeMax The maximum size of the complete HTTP request. The value -1 indicates "unlimited".
*/
- public void setSizeMax(long pSizeMax);
+ void setSizeMax(long pSizeMax);
/**
* Returns, whether another instance of {@link FileItemStream}
@@ -78,7 +78,7 @@
* @return True, if one or more additional file items
* are available, otherwise false.
*/
- public boolean hasNext() throws FileUploadException, IOException;
+ boolean hasNext() throws FileUploadException, IOException;
/**
* Returns the next available {@link FileItemStream}.
@@ -91,7 +91,7 @@
* @return FileItemStream instance, which provides
* access to the next file item.
*/
- public FileItemStream next() throws FileUploadException, IOException;
+ FileItemStream next() throws FileUploadException, IOException;
- public List<FileItem> getFileItems() throws FileUploadException, IOException;
+ List<FileItem> getFileItems() throws FileUploadException, IOException;
}