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/04/18 12:56:05 UTC
[commons-io] branch master updated: Self static reference not needed
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-io.git
The following commit(s) were added to refs/heads/master by this push:
new a6de42b9 Self static reference not needed
a6de42b9 is described below
commit a6de42b9c39a861a5efc8721c610ec8c58eefe37
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Apr 18 08:56:00 2023 -0400
Self static reference not needed
---
src/main/java/org/apache/commons/io/IOUtils.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/IOUtils.java b/src/main/java/org/apache/commons/io/IOUtils.java
index a074ed1a..cada6f7f 100644
--- a/src/main/java/org/apache/commons/io/IOUtils.java
+++ b/src/main/java/org/apache/commons/io/IOUtils.java
@@ -2008,7 +2008,7 @@ public class IOUtils {
* @since 2.5
*/
public static byte[] readFully(final InputStream input, final int length) throws IOException {
- final byte[] buffer = IOUtils.byteArray(length);
+ final byte[] buffer = byteArray(length);
readFully(input, buffer, 0, buffer.length);
return buffer;
}
@@ -2585,7 +2585,7 @@ public class IOUtils {
return EMPTY_BYTE_ARRAY;
}
- final byte[] data = IOUtils.byteArray(size);
+ final byte[] data = byteArray(size);
int offset = 0;
int read;
@@ -2718,7 +2718,7 @@ public class IOUtils {
* @since 2.4
*/
public static byte[] toByteArray(final URI uri) throws IOException {
- return IOUtils.toByteArray(uri.toURL());
+ return toByteArray(uri.toURL());
}
/**
@@ -2732,7 +2732,7 @@ public class IOUtils {
*/
public static byte[] toByteArray(final URL url) throws IOException {
try (CloseableURLConnection urlConnection = CloseableURLConnection.open(url)) {
- return IOUtils.toByteArray(urlConnection);
+ return toByteArray(urlConnection);
}
}
@@ -2747,7 +2747,7 @@ public class IOUtils {
*/
public static byte[] toByteArray(final URLConnection urlConnection) throws IOException {
try (InputStream inputStream = urlConnection.getInputStream()) {
- return IOUtils.toByteArray(inputStream);
+ return toByteArray(inputStream);
}
}