You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/12 14:41:56 UTC
(commons-compress) branch master updated: Camel-case parameter names
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new 81a40c1ea Camel-case parameter names
81a40c1ea is described below
commit 81a40c1ea4d2f84183a22903c04ca3d493fe5b80
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 12 09:41:51 2023 -0500
Camel-case parameter names
---
.../java/org/apache/commons/compress/utils/IOUtils.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/main/java/org/apache/commons/compress/utils/IOUtils.java b/src/main/java/org/apache/commons/compress/utils/IOUtils.java
index 994283f2c..b5c0d187e 100644
--- a/src/main/java/org/apache/commons/compress/utils/IOUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/IOUtils.java
@@ -98,7 +98,7 @@ public final class IOUtils {
* the InputStream to copy
* @param output
* the target, may be null to simulate output to dev/null on Linux and NUL on Windows
- * @param buffersize
+ * @param bufferSize
* the buffer size to use, must be bigger than 0
* @return the number of bytes copied
* @throws IOException
@@ -106,11 +106,11 @@ public final class IOUtils {
* @throws IllegalArgumentException
* if buffersize is smaller than or equal to 0
*/
- public static long copy(final InputStream input, final OutputStream output, final int buffersize) throws IOException {
- if (buffersize < 1) {
+ public static long copy(final InputStream input, final OutputStream output, final int bufferSize) throws IOException {
+ if (bufferSize < 1) {
throw new IllegalArgumentException("buffersize must be bigger than 0");
}
- final byte[] buffer = new byte[buffersize];
+ final byte[] buffer = new byte[bufferSize];
int n = 0;
long count = 0;
while (-1 != (n = input.read(buffer))) {
@@ -151,7 +151,7 @@ public final class IOUtils {
* maximum amount of bytes to copy
* @param output
* the target, may be null to simulate output to dev/null on Linux and NUL on Windows
- * @param buffersize
+ * @param bufferSize
* the buffer size to use, must be bigger than 0
* @return the number of bytes copied
* @throws IOException
@@ -161,11 +161,11 @@ public final class IOUtils {
* @since 1.21
*/
public static long copyRange(final InputStream input, final long len, final OutputStream output,
- final int buffersize) throws IOException {
- if (buffersize < 1) {
+ final int bufferSize) throws IOException {
+ if (bufferSize < 1) {
throw new IllegalArgumentException("buffersize must be bigger than 0");
}
- final byte[] buffer = new byte[(int) Math.min(buffersize, len)];
+ final byte[] buffer = new byte[(int) Math.min(bufferSize, len)];
int n = 0;
long count = 0;
while (count < len && -1 != (n = input.read(buffer, 0, (int) Math.min(len - count, buffer.length)))) {