You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by tw...@apache.org on 2021/04/01 17:51:55 UTC

[mina-sshd] branch master updated: Remove wrong @Override

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

twolf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git


The following commit(s) were added to refs/heads/master by this push:
     new e63569d  Remove wrong @Override
e63569d is described below

commit e63569d8260264ff1b309c011169f3abd926bb90
Author: Thomas Wolf <tw...@apache.org>
AuthorDate: Thu Apr 1 19:48:29 2021 +0200

    Remove wrong @Override
    
    SftpInputStreamAsync.transferTo must not have the @Override annotation;
    it's an override only from JAva 11 on.
---
 .../main/java/org/apache/sshd/sftp/client/impl/SftpInputStreamAsync.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/impl/SftpInputStreamAsync.java b/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/impl/SftpInputStreamAsync.java
index f7d1456..eeddb4a 100644
--- a/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/impl/SftpInputStreamAsync.java
+++ b/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/impl/SftpInputStreamAsync.java
@@ -183,7 +183,6 @@ public class SftpInputStreamAsync extends InputStreamWithChannel implements Sftp
         return numXfered;
     }
 
-    @Override
     @SuppressWarnings("PMD.MissingOverride")
     public long transferTo(OutputStream out) throws IOException {
         if (!isOpen()) {