mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Got rid of volatile modifer. Some variables have been made final.
Fixed typos
This commit is contained in:
parent
8079f7a5b8
commit
98ce8987e6
@ -53,10 +53,10 @@ import org.sleuthkit.datamodel.VolumeSystem;
|
||||
*/
|
||||
public final class ExtractUnallocAction extends AbstractAction {
|
||||
|
||||
private List<UnallocStruct> LstUnallocs = new ArrayList<UnallocStruct>();
|
||||
private static volatile List<String> lockedVols = new ArrayList<String>();
|
||||
private final List<UnallocStruct> LstUnallocs = new ArrayList<UnallocStruct>();
|
||||
private static final List<String> lockedVols = new ArrayList<String>();
|
||||
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<LayoutFile> if it didn't crash List may be empty. Returns null on failure.
|
||||
*/
|
||||
private List<LayoutFile> 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user