Remove unnecessary synchronization from Case.addReport()

This commit is contained in:
Richard Cordovano 2014-06-06 11:56:14 -04:00
parent 54e1b2a2fc
commit e082584959

View File

@ -1182,7 +1182,6 @@ public class Case implements SleuthkitCase.ErrorObserver {
*/
public void addReport(String localPath, String srcModuleName, String reportName) throws TskCoreException {
Report report = this.db.addReport(localPath, srcModuleName, reportName);
synchronized (this) {
try {
Case.pcs.firePropertyChange(Events.REPORT_ADDED.toString(), null, report);
} catch (Exception ex) {
@ -1190,7 +1189,6 @@ public class Case implements SleuthkitCase.ErrorObserver {
logger.log(Level.SEVERE, errorMessage, ex);
}
}
}
public List<Report> getAllReports() throws TskCoreException {
return this.db.getAllReports();