src/main/java/com/googlecode/junittoolbox/util/MultiException.java
public void add(@Nullable Throwable throwable) {
        if (throwable != null) {
            synchronized (nested) {
                if (throwable instanceof MultiException) {
                    MultiException other = (MultiException) throwable;
                    synchronized (other.nested) {
                        nested.addAll(other.nested);
                    }
                } else {
                    nested.add(throwable);
                }
            }
        }
    }
/**
     * @param throwable will be ignored if <code>null</code>
     */
@param throwable will be ignored if null
@param throwable will be ignored if null
public void add(@Nullable Throwable throwable) {
        if (throwable != null) {
            synchronized (nested) {
                if (throwable instanceof MultiException) {
                    MultiException other = (MultiException) throwable;
                    synchronized (other.nested) {
                        nested.addAll(other.nested);
                    }
                } else {
                    nested.add(throwable);
                }
            }
        }
    }
public void add ( @ Nullable Throwable throwable ) { if ( throwable != null ) { synchronized ( nested ) { if ( throwable instanceof MultiException ) { MultiException other = ( MultiException ) throwable ; synchronized ( other . nested ) { nested . addAll ( other . nested ) ; } } else { nested . add ( throwable ) ; } } } }
@param throwable will be ignored if <code>null</code>
@param throwable will be ignored if <code > null< / code >