Fixed some warnings

This commit is contained in:
hierynomus
2015-01-20 09:31:49 +01:00
parent 3cefda5bd3
commit b17d3fe867

View File

@@ -179,7 +179,7 @@ public final class TransportImpl
* <p/> * <p/>
* This is not efficient but is only done once. * 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 * @return empty string if full ident string has not yet been received
* *
@@ -288,7 +288,7 @@ public final class TransportImpl
@Override @Override
public String getServerVersion() { public String getServerVersion() {
return serverID == null ? serverID : serverID.substring(8); return serverID == null ? null : serverID.substring(8);
} }
@Override @Override
@@ -553,13 +553,13 @@ public final class TransportImpl
/** /**
* Got an SSH_MSG_UNIMPLEMENTED, so lets see where we're at and act accordingly. * 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 * @throws TransportException
*/ */
private void gotUnimplemented(SSHPacket buf) private void gotUnimplemented(SSHPacket packet)
throws SSHException { throws SSHException {
long seqNum = buf.readUInt32(); long seqNum = packet.readUInt32();
log.debug("Received SSH_MSG_UNIMPLEMENTED #{}", seqNum); log.debug("Received SSH_MSG_UNIMPLEMENTED #{}", seqNum);
if (kexer.isKexOngoing()) if (kexer.isKexOngoing())
throw new TransportException("Received SSH_MSG_UNIMPLEMENTED while exchanging keys"); throw new TransportException("Received SSH_MSG_UNIMPLEMENTED while exchanging keys");