Fix some typos in IP module (JavaDocs, comments)
This commit is contained in:
@@ -420,7 +420,7 @@ public class CachingClientConnectionFactory extends AbstractClientConnectionFact
|
||||
}
|
||||
}
|
||||
else {
|
||||
/**
|
||||
/*
|
||||
* If the delegate is stopped, actually close the connection, but still release
|
||||
* it to the pool, it will be discarded/renewed the next time it is retrieved.
|
||||
*/
|
||||
|
||||
@@ -72,7 +72,7 @@ public class ClientModeConnectionManager implements Runnable {
|
||||
}
|
||||
|
||||
public boolean isConnected() {
|
||||
return this.lastConnection == null ? false : this.lastConnection.isOpen();
|
||||
return this.lastConnection != null && this.lastConnection.isOpen();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class DefaultTcpNetSSLSocketFactorySupport implements TcpSocketFactorySup
|
||||
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
this.sslContext = this.sslContextSupport.getSSLContext();
|
||||
Assert.notNull(this.sslContext, "SSLContex must not be null");
|
||||
Assert.notNull(this.sslContext, "SSLContext must not be null");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ public class DefaultTcpNioSSLConnectionSupport implements TcpNioConnectionSuppor
|
||||
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
this.sslContext = this.sslContextSupport.getSSLContext();
|
||||
Assert.notNull(this.sslContext, "SSLContex must not be null");
|
||||
Assert.notNull(this.sslContext, "SSLContext must not be null");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class DefaultTcpSSLContextSupport implements TcpSSLContextSupport {
|
||||
* key/trust stores and passwords.
|
||||
* @param keyStore A {@link Resource} pattern pointing to the keyStore.
|
||||
* @param trustStore A {@link Resource} pattern pointing to the trustStore.
|
||||
* @param keyStorePassword The passowrd for the keyStore.
|
||||
* @param keyStorePassword The password for the keyStore.
|
||||
* @param trustStorePassword The password for the trustStore.
|
||||
*/
|
||||
public DefaultTcpSSLContextSupport(String keyStore, String trustStore,
|
||||
|
||||
@@ -31,7 +31,7 @@ public class MessageConvertingTcpMessageMapper extends TcpMessageMapper {
|
||||
private final MessageConverter messageConverter;
|
||||
|
||||
public MessageConvertingTcpMessageMapper(MessageConverter messageConverter) {
|
||||
Assert.notNull(messageConverter, "'messasgeConverter' must not be null");
|
||||
Assert.notNull(messageConverter, "'messageConverter' must not be null");
|
||||
this.messageConverter = messageConverter;
|
||||
}
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ public class TcpNioSSLConnection extends TcpNioConnection {
|
||||
}
|
||||
switch (result.getHandshakeStatus()) {
|
||||
case FINISHED:
|
||||
resumeWriterIfNeeded(); //NOSONAR - fall-through inteded
|
||||
resumeWriterIfNeeded(); //NOSONAR - fall-through intended
|
||||
// switch fall-through intended
|
||||
case NOT_HANDSHAKING:
|
||||
case NEED_UNWRAP:
|
||||
|
||||
Reference in New Issue
Block a user