src/net/java/sip/communicator/service/protocol/AbstractOperationSetDesktopSharingClient.java
/**
     * Removes null and the peer corresponding to the revokedPeerID from the
     * granted control peer list.
     *
     * @param revokedPeerID The ID of the revoked peer. May be null to only
     * clear null instances from the granted control peer list.
     *
     * @return The index corresponding to the revokedPeerID entry. -1 if the
     * revoked PeerID is null, or if the revokedPeerID is not found and removed.
     */
Removes null and the peer corresponding to the revokedPeerID from the
granted control peer list.

@param revokedPeerID The ID of the revoked peer. May be null to only
clear null instances from the granted control peer list.

@return The index corresponding to the revokedPeerID entry. -1 if the
revoked PeerID is null, or if the revokedPeerID is not found and removed.
Removes null and the peer corresponding to the revokedPeerID from the granted control peer list . @param revokedPeerID The ID of the revoked peer . May be null to only clear null instances from the granted control peer list . @return The index corresponding to the revokedPeerID entry . - 1 if the revoked PeerID is null or if the revokedPeerID is not found and removed .
private int removesNullAndRevokedControlPeer(String revokedPeerID)
    {
        int index = -1;
        synchronized(this.grantedRemoteControlPeers)
        {
            CallPeer peer;
            for(int i = 0; i < this.grantedRemoteControlPeers.size(); ++i)
            {
                peer = this.grantedRemoteControlPeers.get(i);
                if(peer == null || peer.getPeerID().equals(revokedPeerID))
                {
                    this.grantedRemoteControlPeers.remove(i);
                    index = i;
                    --i;
                }
            }
        }
        return index;
    }
private int removesNullAndRevokedControlPeer ( String revokedPeerID ) { int index = - 1 ; synchronized ( this . grantedRemoteControlPeers ) { CallPeer peer ; for ( int i = 0 ; i < this . grantedRemoteControlPeers . size ( ) ; ++ i ) { peer = this . grantedRemoteControlPeers . get ( i ) ; if ( peer == null || peer . getPeerID ( ) . equals ( revokedPeerID ) ) { this . grantedRemoteControlPeers . remove ( i ) ; index = i ; -- i ; } } } return index ; }
Removes null and the peer corresponding to the revokedPeerID from the
 granted control peer list.
Removes null and the peer corresponding to the revokedPeerID from the granted control peer list .