in src/main/java/org/apache/maven/plugins/pmd/CpdViolationCheckMojo.java [85:103]
protected void printError(Duplication item, String severity) {
int lines = item.getLines();
StringBuilder buff = new StringBuilder(100);
buff.append("CPD ").append(severity).append(": Found ");
buff.append(lines).append(" lines of duplicated code at locations:");
this.getLog().warn(buff.toString());
for (CpdFile file : item.getFiles()) {
buff.setLength(0);
buff.append(" ");
buff.append(file.getPath());
buff.append(" line ").append(file.getLine());
this.getLog().warn(buff.toString());
}
this.getLog().debug("CPD " + severity + ": Code Fragment ");
this.getLog().debug(item.getCodefragment());
}