Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
Expand Down Expand Up @@ -43,7 +44,8 @@ public CppcheckReport parse(final File file, BuildListener listener) throws IOEx
org.jenkinsci.plugins.cppcheck.model.Cppcheck.class,
org.jenkinsci.plugins.cppcheck.model.Results.class));
Unmarshaller unmarshaller = jc.get().createUnmarshaller();
org.jenkinsci.plugins.cppcheck.model.Results results = (org.jenkinsci.plugins.cppcheck.model.Results) unmarshaller.unmarshal(file);
FileInputStream stream = new FileInputStream(file);
org.jenkinsci.plugins.cppcheck.model.Results results = (org.jenkinsci.plugins.cppcheck.model.Results) unmarshaller.unmarshal(stream);
if (results.getCppcheck() == null) {
throw new JAXBException("Test with versio 1");
}
Expand Down