From 98ce8987e600ee3e70201b0182d77c5cdc938530 Mon Sep 17 00:00:00 2001 From: 0xNF Date: Tue, 4 Dec 2012 16:52:34 -0500 Subject: [PATCH] Got rid of volatile modifer. Some variables have been made final. Fixed typos --- .../autopsy/directorytree/ExtractUnallocAction.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/directorytree/ExtractUnallocAction.java b/Core/src/org/sleuthkit/autopsy/directorytree/ExtractUnallocAction.java index f1040773e6..5e8ee14bb0 100644 --- a/Core/src/org/sleuthkit/autopsy/directorytree/ExtractUnallocAction.java +++ b/Core/src/org/sleuthkit/autopsy/directorytree/ExtractUnallocAction.java @@ -53,10 +53,10 @@ import org.sleuthkit.datamodel.VolumeSystem; */ public final class ExtractUnallocAction extends AbstractAction { - private List LstUnallocs = new ArrayList(); - private static volatile List lockedVols = new ArrayList(); + private final List LstUnallocs = new ArrayList(); + private static final List lockedVols = new ArrayList(); private int numDone = 0; - private volatile static boolean runningOnImage = false; + private static boolean runningOnImage = false; private static final Logger logger = Logger.getLogger(ExtractUnallocAction.class.getName()); private boolean isImage = false; @@ -116,7 +116,7 @@ public final class ExtractUnallocAction extends AbstractAction { /** * Gets all the unallocated files in a given Content. - * @param c Content o get Unallocated Files from + * @param c Content to get Unallocated Files from * @return A list if it didn't crash List may be empty. Returns null on failure. */ private List getUnallocFiles(Content c) { @@ -166,7 +166,7 @@ public final class ExtractUnallocAction extends AbstractAction { }); FileOutputStream fos = new FileOutputStream(path); int MAX_BYTES = 8192; - byte[] buf = new byte[MAX_BYTES]; //read 8k at a time + byte[] buf = new byte[MAX_BYTES]; //read 8kb at a time logger.log(Level.INFO, "Writing Unalloc file to " + path.getPath()); progress.start(us.size());