Fix or suppress SAT CompareObjectsWithEquals findings (#10631)
* Fix or suppress SAT CompareObjectsWithEquals findings Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -603,7 +603,7 @@ public class EthernetBridgeHandler extends BaseBridgeHandler implements Transcei
|
||||
SelectionKey selKey = it.next();
|
||||
it.remove();
|
||||
if (selKey.isValid()) {
|
||||
if (selKey.isAcceptable() && selKey == listenerKey) {
|
||||
if (selKey.isAcceptable() && selKey.equals(listenerKey)) {
|
||||
try {
|
||||
SocketChannel newChannel = listenerChannel.accept();
|
||||
newChannel.configureBlocking(false);
|
||||
|
||||
Reference in New Issue
Block a user