public void setOccurrences(final List<ErrorOccurrence> pOccurrences) {

        occurrences.clear();
        for (final ErrorOccurrence error : pOccurrences) {
            addOccurrence(error);
        }
    }
public void setOccurrences ( final List < ErrorOccurrence > pOccurrences ) { occurrences . clear ( ) ; for ( final ErrorOccurrence error : pOccurrences ) { addOccurrence ( error ) ; } }
Sets the list of occurrences for this bug.

@param pOccurrences
a list with the bug occurrence informations
@see #addOccurrence(String, Date)