Skip to content

Commit 29f365b

Browse files
committed
fix: Formatting
1 parent 38a6a2c commit 29f365b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/org/apache/commons/io/IOUtils.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,11 +2663,9 @@ public static BufferedReader toBufferedReader(final Reader reader, final int siz
26632663
* @throws NullPointerException If {@code inputStream} is {@code null}.
26642664
*/
26652665
public static byte[] toByteArray(final InputStream inputStream) throws IOException {
2666-
final UnsynchronizedByteArrayOutputStream output =
2667-
copyToOutputStream(inputStream, SOFT_MAX_ARRAY_LENGTH + 1, DEFAULT_CHUNK_SIZE);
2666+
final UnsynchronizedByteArrayOutputStream output = copyToOutputStream(inputStream, SOFT_MAX_ARRAY_LENGTH + 1, DEFAULT_CHUNK_SIZE);
26682667
if (output.size() > SOFT_MAX_ARRAY_LENGTH) {
2669-
throw new IllegalArgumentException(
2670-
String.format("Cannot read more than %,d into a byte array", SOFT_MAX_ARRAY_LENGTH));
2668+
throw new IllegalArgumentException(String.format("Cannot read more than %,d into a byte array", SOFT_MAX_ARRAY_LENGTH));
26712669
}
26722670
return output.toByteArray();
26732671
}
@@ -2759,7 +2757,6 @@ public static byte[] toByteArray(final InputStream input, final int size, final
27592757
/**
27602758
* Copies up to {@code size} bytes from the given {@link InputStream} into a new {@link UnsynchronizedByteArrayOutputStream}.
27612759
*
2762-
*
27632760
* @param input The {@link InputStream} to read; must not be {@code null}.
27642761
* @param limit The maximum number of bytes to read; must be {@code >= 0}.
27652762
* The actual bytes read are validated to equal {@code size}.

0 commit comments

Comments
 (0)