Private immutable fields can be final
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1460343 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java b/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
index d0ada99..613c863 100644
--- a/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
+++ b/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
@@ -113,7 +113,7 @@
* The content type passed by the browser, or <code>null</code> if
* not defined.
*/
- private String contentType;
+ private final String contentType;
/**
* Whether or not this item is a simple form field.
@@ -123,7 +123,7 @@
/**
* The original filename in the user's filesystem.
*/
- private String fileName;
+ private final String fileName;
/**
* The size of the item, in bytes. This is used to cache the size when a
@@ -135,12 +135,12 @@
/**
* The threshold above which uploads will be stored on disk.
*/
- private int sizeThreshold;
+ private final int sizeThreshold;
/**
* The directory in which uploaded files will be stored, if stored on disk.
*/
- private File repository;
+ private final File repository;
/**
* Cached contents of the file.