Swapping the if check in cleanConnectorMap to prevent unnecessary calls to
isComponentVisible when the connector is in uninitializedConnectors set.
Change-Id: If6305a908364f8a7bb51fd7302449c6f54c274a3
uninitializedConnectors.remove(connector);
diffStates.remove(connector);
iterator.remove();
- } else if (!LegacyCommunicationManager
- .isConnectorVisibleToClient(connector)
- && !uninitializedConnectors.contains(connector)) {
+ } else if (!uninitializedConnectors.contains(connector)
+ && !LegacyCommunicationManager
+ .isConnectorVisibleToClient(connector)) {
uninitializedConnectors.add(connector);
diffStates.remove(connector);
if (getLogger().isLoggable(Level.FINE)) {