fixed coverity reported unguarded read

This commit is contained in:
Jeremy Long
2017-06-03 08:07:55 -04:00
parent c3ff5bac54
commit ca4da60dc1

View File

@@ -812,7 +812,7 @@ public class Engine implements FileFilter {
* @param format the report format (ALL, HTML, CSV, JSON, etc.)
* @throws ReportException thrown if there is an error generating the report
*/
public void writeReports(String applicationName, String groupId, String artifactId,
public synchronized void writeReports(String applicationName, String groupId, String artifactId,
String version, File outputDir, String format) throws ReportException {
final DatabaseProperties prop = database.getDatabaseProperties();