Skip to content
Permalink
Browse files
Use final.
  • Loading branch information
garydgregory committed Nov 21, 2020
1 parent 41fb9ee commit 8ff8ba4f19b16d404ed24c53e6e6afe3d25f0e4a
Show file tree
Hide file tree
Showing 58 changed files with 623 additions and 623 deletions.
@@ -61,9 +61,9 @@
* @deprecated 1.1 Use {@code DiskFileItem} instead.
*/
@Deprecated
public DefaultFileItem(String fieldName, String contentType,
boolean isFormField, String fileName, int sizeThreshold,
File repository) {
public DefaultFileItem(final String fieldName, final String contentType,
final boolean isFormField, final String fileName, final int sizeThreshold,
final File repository) {
super(fieldName, contentType, isFormField, fileName, sizeThreshold,
repository);
}
@@ -67,7 +67,7 @@ public DefaultFileItemFactory() {
* @deprecated 1.1 Use {@code DiskFileItemFactory} instead.
*/
@Deprecated
public DefaultFileItemFactory(int sizeThreshold, File repository) {
public DefaultFileItemFactory(final int sizeThreshold, final File repository) {
super(sizeThreshold, repository);
}

@@ -92,10 +92,10 @@ public DefaultFileItemFactory(int sizeThreshold, File repository) {
@Override
@Deprecated
public FileItem createItem(
String fieldName,
String contentType,
boolean isFormField,
String fileName
final String fieldName,
final String contentType,
final boolean isFormField,
final String fileName
) {
return new DefaultFileItem(fieldName, contentType,
isFormField, fileName, getSizeThreshold(), getRepository());
@@ -73,7 +73,7 @@ public DiskFileUpload() {
* @deprecated 1.1 Use {@code FileUpload} instead.
*/
@Deprecated
public DiskFileUpload(DefaultFileItemFactory fileItemFactory) {
public DiskFileUpload(final DefaultFileItemFactory fileItemFactory) {
this.fileItemFactory = fileItemFactory;
}

@@ -103,7 +103,7 @@ public FileItemFactory getFileItemFactory() {
*/
@Override
@Deprecated
public void setFileItemFactory(FileItemFactory factory) {
public void setFileItemFactory(final FileItemFactory factory) {
this.fileItemFactory = (DefaultFileItemFactory) factory;
}

@@ -132,7 +132,7 @@ public int getSizeThreshold() {
* @deprecated 1.1 Use {@code DiskFileItemFactory} instead.
*/
@Deprecated
public void setSizeThreshold(int sizeThreshold) {
public void setSizeThreshold(final int sizeThreshold) {
fileItemFactory.setSizeThreshold(sizeThreshold);
}

@@ -162,7 +162,7 @@ public String getRepositoryPath() {
* @deprecated 1.1 Use {@code DiskFileItemFactory} instead.
*/
@Deprecated
public void setRepositoryPath(String repositoryPath) {
public void setRepositoryPath(final String repositoryPath) {
fileItemFactory.setRepository(new File(repositoryPath));
}

@@ -187,9 +187,9 @@ public void setRepositoryPath(String repositoryPath) {
* @deprecated 1.1 Use {@code ServletFileUpload} instead.
*/
@Deprecated
public List<FileItem> parseRequest(HttpServletRequest req,
int sizeThreshold,
long sizeMax, String path)
public List<FileItem> parseRequest(final HttpServletRequest req,
final int sizeThreshold,
final long sizeMax, final String path)
throws FileUploadException {
setSizeThreshold(sizeThreshold);
setSizeMax(sizeMax);
@@ -61,7 +61,7 @@ public FileUpload() {
* @see #FileUpload()
* @param fileItemFactory The factory to use for creating file items.
*/
public FileUpload(FileItemFactory fileItemFactory) {
public FileUpload(final FileItemFactory fileItemFactory) {
this.fileItemFactory = fileItemFactory;
}

@@ -83,7 +83,7 @@ public FileItemFactory getFileItemFactory() {
* @param factory The factory class for new file items.
*/
@Override
public void setFileItemFactory(FileItemFactory factory) {
public void setFileItemFactory(final FileItemFactory factory) {
this.fileItemFactory = factory;
}

0 comments on commit 8ff8ba4

Please sign in to comment.