public void addListener(L listener)
    {
        // Ensure update to the list, and rebuilding the active array happens atomically.
        synchronized (listenersLock)
        {
            listeners.add(listener);
            activeListeners = new ArrayList<L>(listeners);
        }
    }
public void addListener(L listener)
    {
        
        synchronized (listenersLock)
        {
            listeners.add(listener);
            activeListeners = new ArrayList<L>(listeners);
        }
    }
public void addListener ( L listener ) { // Ensure update to the list, and rebuilding the active array happens atomically. synchronized ( listenersLock ) { listeners . add ( listener ) ; activeListeners = new ArrayList < L > ( listeners ) ; } }
{@inheritDoc}
{