mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 10:19:41 +02:00
Enable MissingJavadocPackage and UnnecessaryParentheses checkstyle checks
This commit is contained in:
parent
2ac452fe1e
commit
4ca2c7cc69
76 changed files with 120 additions and 131 deletions
|
@ -569,7 +569,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
int port = hostAddress.getPort();
|
||||
if (proxyInfo == null) {
|
||||
inetAddresses = hostAddress.getInetAddresses().iterator();
|
||||
assert (inetAddresses.hasNext());
|
||||
assert inetAddresses.hasNext();
|
||||
|
||||
innerloop: while (inetAddresses.hasNext()) {
|
||||
// Create a *new* Socket before every connection attempt, i.e. connect() call, since Sockets are not
|
||||
|
|
|
@ -229,7 +229,7 @@ public class XmppNioTcpConnection extends AbstractXmppNioConnection {
|
|||
notifyConnectionError(ise);
|
||||
return;
|
||||
}
|
||||
assert (config.getXMPPServiceDomain().equals(reportedServerDomain));
|
||||
assert config.getXMPPServiceDomain().equals(reportedServerDomain);
|
||||
break;
|
||||
case "xmlns":
|
||||
streamOpen.append(" xmlns='").append(attributeValue).append('\'');
|
||||
|
@ -513,7 +513,7 @@ public class XmppNioTcpConnection extends AbstractXmppNioConnection {
|
|||
} else {
|
||||
outgoingCharSequenceIterator = Collections.singletonList(nextCharSequence).iterator();
|
||||
}
|
||||
assert (outgoingCharSequenceIterator != null);
|
||||
assert outgoingCharSequenceIterator != null;
|
||||
} else {
|
||||
// There is nothing more to write.
|
||||
break;
|
||||
|
@ -1067,7 +1067,6 @@ public class XmppNioTcpConnection extends AbstractXmppNioConnection {
|
|||
initiated,
|
||||
successful,
|
||||
failed,
|
||||
;
|
||||
}
|
||||
|
||||
private static final Level SSL_ENGINE_DEBUG_LOG_LEVEL = Level.FINEST;
|
||||
|
@ -1282,7 +1281,7 @@ public class XmppNioTcpConnection extends AbstractXmppNioConnection {
|
|||
return null;
|
||||
case BUFFER_OVERFLOW:
|
||||
int applicationBufferSize = engine.getSession().getApplicationBufferSize();
|
||||
assert (peerAppData.remaining() < applicationBufferSize);
|
||||
assert peerAppData.remaining() < applicationBufferSize;
|
||||
peerAppData = ByteBuffer.allocate(applicationBufferSize);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue