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

commit 190c343ff7287cd78cae30eb8472be7e8d6204ad
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Oct 11 09:16:30 2023 -0400

    The static field UnsynchronizedBufferedInputStreamTest.DATA should be
    accessed in a static way
---
 .../commons/io/input/UnsynchronizedBufferedInputStreamTest.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStreamTest.java
 
b/src/test/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStreamTest.java
index f7fcba81..1ac6042a 100644
--- 
a/src/test/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/io/input/UnsynchronizedBufferedInputStreamTest.java
@@ -176,7 +176,7 @@ public class UnsynchronizedBufferedInputStreamTest {
         // Test for method java.io.BufferedInputStream(java.io.InputStream, 
int)
 
         // Create buffer with exact size of file
-        is = new BufferedInputStream(isFile, this.DATA.length());
+        is = new BufferedInputStream(isFile, DATA.length());
         // Ensure buffer gets filled by evaluating one read
         is.read();
         // Close underlying FileInputStream, all but 1 buffered bytes should
@@ -184,7 +184,7 @@ public class UnsynchronizedBufferedInputStreamTest {
         isFile.close();
         // Read the remaining buffered characters, no IOException should
         // occur.
-        is.skip(this.DATA.length() - 2);
+        is.skip(DATA.length() - 2);
         is.read();
         // is.read should now throw an exception because it will have to be 
filled.
         assertThrows(IOException.class, () -> is.read());

Reply via email to