CPD Results

The following document contains the results of PMD's CPD 4.2.5.

Duplications

File Line
info/magnolia/module/exchangesimple/SimpleSyndicator.java 92
info/magnolia/module/exchangesimple/SimpleSyndicator.java 243
        acquireIgnoringInterruption(done);

        // collect all the errors and send them back.
        if (!errors.isEmpty()) {
            Exception e = null;
            StringBuffer msg = new StringBuffer(errors.size() + " error").append(
            errors.size() > 1 ? "s" : "").append(" detected: ");
            Iterator iter = errors.entrySet().iterator();
            while (iter.hasNext()) {
                Entry entry = (Entry) iter.next();
                e = (Exception) entry.getValue();
                Subscriber subscriber = (Subscriber) entry.getKey();
                msg.append("\n").append(e.getMessage()).append(" on ").append(subscriber.getName());
                log.error(e.getMessage(), e);
            }

            throw new ExchangeException(msg.toString(), e);
        }