public void accept()

in src/main/java/org/apache/maven/plugins/pmd/exec/CpdReportConsumer.java [51:66]


    public void accept(CPDReport report) {
        try {
            // always create XML format. we need to output it even if the file list is empty or we have no
            // duplications so that the "check" goals can check for violations
            writeXmlReport(report);

            // HTML format is handled by maven site report, XML format has already been rendered.
            // a renderer is only needed for other formats
            String format = request.getFormat();
            if (!"html".equals(format) && !"xml".equals(format)) {
                writeFormattedReport(report);
            }
        } catch (IOException | MavenReportException e) {
            throw new RuntimeException(e);
        }
    }