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 6a187cc3 Fix formatting
6a187cc3 is described below

commit 6a187cc3c7d852670a9fd672da1c5fc6113c1523
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Jun 2 16:54:58 2023 -0400

    Fix formatting
---
 src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java | 2 +-
 src/main/java/org/apache/commons/io/output/ChunkedWriter.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java 
b/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
index a7e77cf5..786d4cce 100644
--- a/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
+++ b/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java
@@ -293,7 +293,7 @@ public class CharSequenceInputStream extends InputStream {
                 this.cBuf.rewind();
                 this.bBuf.rewind();
                 this.bBuf.limit(0); // rewind does not clear the buffer
-                while(this.cBuf.position() < this.cBufMark) {
+                while (this.cBuf.position() < this.cBufMark) {
                     this.bBuf.rewind(); // empty the buffer (we only refill 
when empty during normal processing)
                     this.bBuf.limit(0);
                     fillBuffer();
diff --git a/src/main/java/org/apache/commons/io/output/ChunkedWriter.java 
b/src/main/java/org/apache/commons/io/output/ChunkedWriter.java
index 14d36b76..37930ac1 100644
--- a/src/main/java/org/apache/commons/io/output/ChunkedWriter.java
+++ b/src/main/java/org/apache/commons/io/output/ChunkedWriter.java
@@ -76,7 +76,7 @@ public class ChunkedWriter extends FilterWriter {
     public void write(final char[] data, final int srcOffset, final int 
length) throws IOException {
         int bytes = length;
         int dstOffset = srcOffset;
-        while(bytes > 0) {
+        while (bytes > 0) {
             final int chunk = Math.min(bytes, chunkSize);
             out.write(data, dstOffset, chunk);
             bytes -= chunk;

Reply via email to