mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 23:30:55 +03:00
Fixed some warnings
This commit is contained in:
@@ -179,7 +179,7 @@ public final class TransportImpl
|
||||
* <p/>
|
||||
* This is not efficient but is only done once.
|
||||
*
|
||||
* @param buffer
|
||||
* @param buffer The buffer to read from.
|
||||
*
|
||||
* @return empty string if full ident string has not yet been received
|
||||
*
|
||||
@@ -288,7 +288,7 @@ public final class TransportImpl
|
||||
|
||||
@Override
|
||||
public String getServerVersion() {
|
||||
return serverID == null ? serverID : serverID.substring(8);
|
||||
return serverID == null ? null : serverID.substring(8);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -553,13 +553,13 @@ public final class TransportImpl
|
||||
/**
|
||||
* Got an SSH_MSG_UNIMPLEMENTED, so lets see where we're at and act accordingly.
|
||||
*
|
||||
* @param buf
|
||||
* @param packet The 'unimplemented' packet received
|
||||
*
|
||||
* @throws TransportException
|
||||
*/
|
||||
private void gotUnimplemented(SSHPacket buf)
|
||||
private void gotUnimplemented(SSHPacket packet)
|
||||
throws SSHException {
|
||||
long seqNum = buf.readUInt32();
|
||||
long seqNum = packet.readUInt32();
|
||||
log.debug("Received SSH_MSG_UNIMPLEMENTED #{}", seqNum);
|
||||
if (kexer.isKexOngoing())
|
||||
throw new TransportException("Received SSH_MSG_UNIMPLEMENTED while exchanging keys");
|
||||
|
||||
Reference in New Issue
Block a user