This is an automated email from the ASF dual-hosted git repository.

turcsanyi pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
     new fb217406c7 NIFI-11924: Corrected HDFSResourceInputStream for Java 8
fb217406c7 is described below

commit fb217406c71762f1ffd169bf2db0fd1da180e83d
Author: Peter Turcsanyi <[email protected]>
AuthorDate: Tue Aug 22 19:10:06 2023 +0200

    NIFI-11924: Corrected HDFSResourceInputStream for Java 8
    
    Signed-off-by: Peter Turcsanyi <[email protected]>
---
 .../resource/hadoop/HDFSResourceInputStream.java   | 25 ----------------------
 1 file changed, 25 deletions(-)

diff --git 
a/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/flow/resource/hadoop/HDFSResourceInputStream.java
 
b/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/flow/resource/hadoop/HDFSResourceInputStream.java
index c8108b660b..8003207c20 100644
--- 
a/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/flow/resource/hadoop/HDFSResourceInputStream.java
+++ 
b/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/flow/resource/hadoop/HDFSResourceInputStream.java
@@ -48,31 +48,11 @@ final class HDFSResourceInputStream extends InputStream {
         return inputStream.read(b, off, len);
     }
 
-    @Override
-    public byte[] readAllBytes() throws IOException {
-        return inputStream.readAllBytes();
-    }
-
-    @Override
-    public byte[] readNBytes(final int len) throws IOException {
-        return inputStream.readNBytes(len);
-    }
-
-    @Override
-    public int readNBytes(final byte[] b, final int off, final int len) throws 
IOException {
-        return inputStream.readNBytes(b, off, len);
-    }
-
     @Override
     public long skip(final long n) throws IOException {
         return inputStream.skip(n);
     }
 
-    @Override
-    public void skipNBytes(final long n) throws IOException {
-        inputStream.skipNBytes(n);
-    }
-
     @Override
     public int available() throws IOException {
         return inputStream.available();
@@ -98,9 +78,4 @@ final class HDFSResourceInputStream extends InputStream {
     public boolean markSupported() {
         return inputStream.markSupported();
     }
-
-    @Override
-    public long transferTo(final OutputStream out) throws IOException {
-        return inputStream.transferTo(out);
-    }
 }

Reply via email to