gerrit-events/src/main/java/com/sonyericsson/hudson/plugins/gerrit/gerritevents/dto/events/lifecycle/GerritEventLifecycle.java
/**
     * Adds the listener to the list of listeners.
     * @param listener the listener to add.
     */
Adds the listener to the list of listeners.
@param listener the listener to add.
Adds the listener to the list of listeners . @param listener the listener to add .
public synchronized void addListener(GerritEventLifecycleListener listener) {
        if (listeners == null) {
            listeners = new LinkedList<GerritEventLifecycleListener>();
        }
        if (!listeners.contains(listener)) {
           listeners.add(listener);
        }
    }
public synchronized void addListener ( GerritEventLifecycleListener listener ) { if ( listeners == null ) { listeners = new LinkedList < GerritEventLifecycleListener > ( ) ; } if ( ! listeners . contains ( listener ) ) { listeners . add ( listener ) ; } }
Adds the listener to the list of listeners.
Adds the listener to the list of listeners .