coverity recommended changes

This commit is contained in:
Jeremy Long
2016-10-23 07:20:24 -04:00
parent e751b7b814
commit 773ac019f8
3 changed files with 4 additions and 4 deletions

View File

@@ -423,7 +423,7 @@ public final class Settings {
* @param deleteTemporary flag indicating whether any temporary directories
* generated should be removed
*/
public static void cleanup(boolean deleteTemporary) {
public static synchronized void cleanup(boolean deleteTemporary) {
if (deleteTemporary && tempDirectory != null && tempDirectory.exists()) {
FileUtils.delete(tempDirectory);
tempDirectory = null;