You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2017/06/15 08:50:18 UTC
commons-fileupload git commit: Fix checkstyle issues
Repository: commons-fileupload
Updated Branches:
refs/heads/master b8550c54b -> b148d5fec
Fix checkstyle issues
Project: http://git-wip-us.apache.org/repos/asf/commons-fileupload/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-fileupload/commit/b148d5fe
Tree: http://git-wip-us.apache.org/repos/asf/commons-fileupload/tree/b148d5fe
Diff: http://git-wip-us.apache.org/repos/asf/commons-fileupload/diff/b148d5fe
Branch: refs/heads/master
Commit: b148d5fec9352a1788384cfd2e91ae32e9404b53
Parents: b8550c5
Author: Bruno P. Kinoshita <br...@yahoo.com.br>
Authored: Thu Jun 15 20:50:09 2017 +1200
Committer: Bruno P. Kinoshita <br...@yahoo.com.br>
Committed: Thu Jun 15 20:50:09 2017 +1200
----------------------------------------------------------------------
src/main/java/org/apache/commons/fileupload/MultipartStream.java | 4 ++--
.../java/org/apache/commons/fileupload/disk/DiskFileItem.java | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-fileupload/blob/b148d5fe/src/main/java/org/apache/commons/fileupload/MultipartStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/fileupload/MultipartStream.java b/src/main/java/org/apache/commons/fileupload/MultipartStream.java
index 29aa554..ee60a3d 100644
--- a/src/main/java/org/apache/commons/fileupload/MultipartStream.java
+++ b/src/main/java/org/apache/commons/fileupload/MultipartStream.java
@@ -228,7 +228,7 @@ public class MultipartStream {
private final byte[] boundary;
/**
- * The table for Knuth-Morris-Pratt search algorithm
+ * The table for Knuth-Morris-Pratt search algorithm.
*/
private int[] boundaryTable;
@@ -337,7 +337,7 @@ public class MultipartStream {
}
this.input = input;
- this.bufSize = Math.max(bufSize, boundaryLength*2);
+ this.bufSize = Math.max(bufSize, boundaryLength * 2);
this.buffer = new byte[this.bufSize];
this.notifier = pNotifier;
http://git-wip-us.apache.org/repos/asf/commons-fileupload/blob/b148d5fe/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
----------------------------------------------------------------------
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 033579f..2c6698a 100644
--- a/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
+++ b/src/main/java/org/apache/commons/fileupload/disk/DiskFileItem.java
@@ -375,7 +375,7 @@ public class DiskFileItem
fout.write(get());
fout.close();
} finally {
- IOUtils.closeQuietly(fout);
+ IOUtils.closeQuietly(fout);
}
} else {
File outputFile = getStoreLocation();
@@ -505,7 +505,7 @@ public class DiskFileItem
return null;
}
if (isInMemory()) {
- return null;
+ return null;
}
return dfos.getFile();
}