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 52434dd1eca0ca965a14637351157c23ac2fa972 Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri Apr 25 09:59:18 2025 -0400 Inline single use local variable --- .../apache/commons/compress/utils/FixedLengthBlockOutputStream.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStream.java b/src/main/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStream.java index ad5ce23c9..1e2589061 100644 --- a/src/main/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStream.java +++ b/src/main/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStream.java @@ -262,8 +262,7 @@ private void writeBlock() throws IOException { final int i = out.write(buffer); final boolean hasRemaining = buffer.hasRemaining(); if (i != blockSize || hasRemaining) { - final String msg = String.format("Failed to write %,d bytes atomically. Only wrote %,d", blockSize, i); - throw new IOException(msg); + throw new IOException(String.format("Failed to write %,d bytes atomically. Only wrote %,d", blockSize, i)); } buffer.clear(); }