fr.sii.sonar.duplication.cpd.provider.CpdProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-duplication-cpd Show documentation
Show all versions of sonar-duplication-cpd Show documentation
Plugin that parses CPD xml report
The newest version!
package fr.sii.sonar.duplication.cpd.provider;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.InputStream;
import fr.sii.sonar.duplication.cpd.domain.PmdCpd;
import fr.sii.sonar.report.core.common.provider.XmlFileReportProvider;
import fr.sii.sonar.report.core.duplication.domain.DuplicationReport;
/**
* Provider that parses a CPD xml file and provide a {@link DuplicationReport}
*
* @author Aurélien Baudet
*
*/
public class CpdProvider extends XmlFileReportProvider {
public CpdProvider(InputStream stream) {
super(stream, PmdCpd.class, new CpdAdapter());
}
public CpdProvider(File reportFile) throws FileNotFoundException {
super(reportFile, PmdCpd.class, new CpdAdapter());
}
}