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/05/15 12:46:10 UTC
[commons-compress] 01/03: Format tweak
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
commit 34cefb8fe00a958c4f39379ca3a6fbbd78e5a235
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 15 08:29:08 2023 -0400
Format tweak
---
.../compress/compressors/pack200/InMemoryCachingStreamBridge.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/compress/compressors/pack200/InMemoryCachingStreamBridge.java b/src/main/java/org/apache/commons/compress/compressors/pack200/InMemoryCachingStreamBridge.java
index 1eedd93d..dba22a6f 100644
--- a/src/main/java/org/apache/commons/compress/compressors/pack200/InMemoryCachingStreamBridge.java
+++ b/src/main/java/org/apache/commons/compress/compressors/pack200/InMemoryCachingStreamBridge.java
@@ -25,8 +25,8 @@ import java.io.IOException;
import java.io.InputStream;
/**
- * StreamBridge that caches all data written to the output side in
- * memory.
+ * StreamBridge that caches all data written to the output side in memory.
+ *
* @since 1.3
*/
class InMemoryCachingStreamBridge extends StreamBridge {
@@ -36,7 +36,6 @@ class InMemoryCachingStreamBridge extends StreamBridge {
@Override
InputStream getInputView() throws IOException {
- return new ByteArrayInputStream(((ByteArrayOutputStream) out)
- .toByteArray());
+ return new ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray());
}
}