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());